X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=ltt-sessiond%2Fust-ctl.h;h=1fe29c8772e4b195ea4fb9c09af9b4168d1ece85;hb=1316184615e422526ef4fae68f980443414969c1;hp=1b3bdcaa417c37849178c0868bbc648a60738bed;hpb=b088a5811cd4bd654b6f04a4bff6387965b1e15a;p=lttng-tools.git diff --git a/ltt-sessiond/ust-ctl.h b/ltt-sessiond/ust-ctl.h index 1b3bdcaa4..1fe29c877 100644 --- a/ltt-sessiond/ust-ctl.h +++ b/ltt-sessiond/ust-ctl.h @@ -1,33 +1,41 @@ /* + * ust-ctl.h + * + * Meta header used to include all relevant file from the lttng ust ABI. + * * Copyright (C) 2011 - David Goulet * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; only version 2 of the License. * - * This program 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 General Public License for more details. + * This program 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 General Public License for + * more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _LTT_UST_CTL_H #define _LTT_UST_CTL_H -#include "session.h" -#include "trace.h" +#include /* -int get_trace_count_per_session(struct ltt_session *session); -void get_traces_per_session(struct ltt_session *session, struct lttng_trace *traces); -int ust_create_trace(struct command_ctx *cmd_ctx); -int ust_start_trace(struct command_ctx *cmd_ctx); -int ust_stop_trace(struct command_ctx *cmd_ctx); -*/ + * FIXME: temporary workaround: we use a lttng-tools local version of + * lttng-ust-abi.h if UST is not found. Eventually, we should use our + * own internal structures within lttng-tools instead of relying on the + * UST ABI. + */ +#ifdef CONFIG_LTTNG_TOOLS_HAVE_UST +#include +#include +#else +#include "lttng-ust-ctl.h" +#include "lttng-ust-abi.h" +#endif -#endif /* _LTT_TRACE_H */ +#endif /* _LTT_UST_CTL_H */