X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libustcmd%2Fustcmd.h;h=60f5018b1076346856b1d6d2aa8dd2163f34ded4;hb=f3f8cc914bc8fdf89e328ed591bd052a981c8298;hp=750d4133fec3563c9a79dfb11971618306b48846;hpb=e77b8e8e6202b3a5ff87dc20553d2fad9ed5ff2e;p=ust.git diff --git a/libustcmd/ustcmd.h b/libustcmd/ustcmd.h index 750d413..60f5018 100644 --- a/libustcmd/ustcmd.h +++ b/libustcmd/ustcmd.h @@ -1,3 +1,20 @@ +/* Copyright (C) 2009 Pierre-Marc Fournier + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #ifndef _USTCMD_H #define _USTCMD_H @@ -7,9 +24,6 @@ #include #include -#include "ustcomm.h" -#include "ustcmd.h" - #define USTCMD_ERR_CONN 1 /* Process connection error */ #define USTCMD_ERR_ARG 2 /* Invalid function argument */ #define USTCMD_ERR_GEN 3 /* General ustcmd error */ @@ -45,5 +59,8 @@ 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); +extern int ustcmd_set_sock_path(const char *, pid_t); +extern int ustcmd_get_sock_path(char **, pid_t); +extern int ustcmd_force_switch(pid_t); #endif /* _USTCMD_H */