X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fevent-internal.h;h=01e9b8088db991426b63294b7222efe911c00602;hp=8902a1a08d14233760597fcf9c1a7e854468e60c;hb=2463b7879c00298daa79744cdaae82ac061a4ed8;hpb=2d1318e441e7a09bf01f9206c651831911ce7e89 diff --git a/include/lttng/event-internal.h b/include/lttng/event-internal.h index 8902a1a08..01e9b8088 100644 --- a/include/lttng/event-internal.h +++ b/include/lttng/event-internal.h @@ -3,25 +3,18 @@ * * Linux Trace Toolkit Control Library * - * Copyright (C) 2017 - Jérémie Galarneau + * Copyright (C) 2017 Jérémie Galarneau * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * 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 LTTNG_EVENT_INTERNAL_H #define LTTNG_EVENT_INTERNAL_H +#include +#include + struct lttng_userspace_probe_location; struct lttng_event_extended { @@ -40,4 +33,22 @@ struct lttng_event_extended { struct lttng_userspace_probe_location *probe_location; }; +LTTNG_HIDDEN +struct lttng_event *lttng_event_copy(const struct lttng_event *event); + +// FIXME: the implementation of these should be moved to some common file, +// they should not be in the enable_events.c file. + +LTTNG_HIDDEN +int loglevel_str_to_value(const char *inputstr); + +LTTNG_HIDDEN +int loglevel_log4j_str_to_value(const char *inputstr); + +LTTNG_HIDDEN +int loglevel_jul_str_to_value(const char *inputstr); + +LTTNG_HIDDEN +int loglevel_python_str_to_value(const char *inputstr); + #endif /* LTTNG_EVENT_INTERNAL_H */