ATLAS Offline Software
AthDsoCbk.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef CXXUTILS_ATHDSOCBK_H
12 #define CXXUTILS_ATHDSOCBK_H 1
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /*__cplusplus */
17 
18 /* forward declares */
19 
20 /* type of events the dso-callback framework will dispatch */
22 {
23  const char* fname; /* the name of the dso being loaded */
24  int step; /* 0: before loading the dso
25  1: after loading the dso */
26 };
27 
28 /* type of the callback function the dso logger will execute
29  * NOTE: userdata pointer may be NULL
30  */
31 typedef int (*ath_dso_event_cbk_t)(const struct ath_dso_event*, void *userdata);
32 
33 /* register a callback function with the dso-cbk framework
34  * @return 0 on success
35  * -1 on failure
36  */
37 int ath_dso_cbk_register(ath_dso_event_cbk_t cbk, void *userdata);
38 
39 /* unregister a callback function with the dso-cbk framework
40  * @return 0 on success
41  * -1 on failure
42  */
44 
45 #ifdef __cplusplus
46 } /* extern C */
47 #endif /*__cplusplus */
48 
49 #endif /* !CXXUTILS_ATHDSOCBK_H */
50 
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ath_dso_event::fname
const char * fname
Definition: AthDsoCbk.h:23
ath_dso_cbk_register
int ath_dso_cbk_register(ath_dso_event_cbk_t cbk, void *userdata)
ath_dso_event_cbk_t
int(* ath_dso_event_cbk_t)(const struct ath_dso_event *, void *userdata)
Definition: AthDsoCbk.h:31
ath_dso_event
-*- C -*- AthDsoCbk.h Header file for the dso callbacks api Author: S.Binetbinet@cern....
Definition: AthDsoCbk.h:22
ath_dso_event::step
int step
Definition: AthDsoCbk.h:24
ath_dso_cbk_unregister
int ath_dso_cbk_unregister(ath_dso_event_cbk_t cbk)