X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libustcmd%2Fustcmd.h;h=da4718b0943b3d317525355834c062e43a30decb;hb=08230db7e2e536bddf0015fa663b6d10abea30f1;hp=8bca50974bb03c572422382eba5ead88b9f01210;hpb=5f04cdcbbea9d600b3f325dd739b217ab2a8f78a;p=ust.git diff --git a/libustcmd/ustcmd.h b/libustcmd/ustcmd.h index 8bca509..da4718b 100644 --- a/libustcmd/ustcmd.h +++ b/libustcmd/ustcmd.h @@ -22,22 +22,22 @@ #define USTCMD_SOCK_PATH "/tmp/socks/" /* Channel/marker/state/format string (cmsf) info. structure */ -struct USTcmd_cmsf { - char* channel; /* Channel name (end of USTcmd_cmsf array if NULL) */ - char* marker; /* Marker name (end of USTcmd_cmsf array if NULL) */ +struct marker_status { + char *channel; /* Channel name (end of marker_status array if NULL) */ + char *marker; /* Marker name (end of marker_status array if NULL) */ int state; /* State (0 := marker disabled, 1 := marker enabled) */ - char* fs; /* Format string (end of USTcmd_cmsf array if NULL) */ + char *fs; /* Format string (end of marker_status array if NULL) */ }; -pid_t* ustcmd_get_online_pids(void); -int ustcmd_set_marker_state(const char*, int, pid_t); -int ustcmd_destroy_trace(pid_t); -int ustcmd_setup_and_start(pid_t); -int ustcmd_stop_trace(pid_t); -int ustcmd_start_trace(pid_t); -int ustcmd_free_cmsf(struct USTcmd_cmsf*); -unsigned int ustcmd_count_nl(const char*); -int ustcmd_shoot(const char*, pid_t, char**); -int ustcmd_get_cmsf(struct USTcmd_cmsf**, pid_t); +extern pid_t *ustcmd_get_online_pids(void); +extern int ustcmd_set_marker_state(const char *, int, pid_t); +extern int ustcmd_destroy_trace(pid_t); +extern int ustcmd_setup_and_start(pid_t); +extern int ustcmd_stop_trace(pid_t); +extern int ustcmd_start_trace(pid_t); +extern int ustcmd_free_cmsf(struct marker_status *); +extern unsigned int ustcmd_count_nl(const char *); +extern int ustcmd_send_cmd(const char *, pid_t, char **); +extern int ustcmd_get_cmsf(struct marker_status **, pid_t); #endif /* _USTCMD_H */