X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2Fhook.h;h=803304c0e3606fa99bb19b272377bc7623a67379;hb=dd025f915d9b3a3e587578e97b3738115193c180;hp=677bb8929bf872d7f10acd032787491290ff3bc8;hpb=996acd9220aa2a8e2bb502cc95d140eb44c322de;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/hook.h b/ltt/branches/poly/include/lttv/hook.h index 677bb892..803304c0 100644 --- a/ltt/branches/poly/include/lttv/hook.h +++ b/ltt/branches/poly/include/lttv/hook.h @@ -1,3 +1,21 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 Michel Dagenais + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License Version 2 as + * published by the Free Software Foundation; + * + * 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. + */ + #ifndef HOOK_H #define HOOK_H @@ -29,7 +47,7 @@ void lttv_hooks_add(LttvHooks *h, LttvHook f, void *hook_data); /* Add a list of hooks to the list h */ -void lttv_hooks_add(LttvHooks *h, LttvHooks *list); +void lttv_hooks_add_list(LttvHooks *h, LttvHooks *list); /* Remove a hook from the list. Return the hook data. */ @@ -44,7 +62,7 @@ void lttv_hooks_remove_data(LttvHooks *h, LttvHook f, void *hook_data); /* Remove a list of hooks from the hooks list in h. */ -void lttv_hooks_remove_data(LttvHooks *h, LttvHook *list); +void lttv_hooks_remove_data_list(LttvHooks *h, LttvHook *list); /* Return the number of hooks in the list */ @@ -63,7 +81,7 @@ void lttv_hooks_remove_by_position(LttvHooks *h, unsigned i); /* Call all the hooks in the list, each with its hook data, - with the specified call data. Return TRUE is one hook returned TRUE. */ + with the specified call data. Return TRUE if one hook returned TRUE. */ gboolean lttv_hooks_call(LttvHooks *h, void *call_data); @@ -77,7 +95,7 @@ gboolean lttv_hooks_call_check(LttvHooks *h, void *call_data); /* Sometimes different hooks need to be called based on the case. The case is represented by an unsigned integer id */ -typedef struct _LttvHooksById LttvHooksById; +typedef GPtrArray LttvHooksById; /* Create and destroy a hooks by id list */