ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11#ifndef CXXUTILS_ATHDSOCBK_H
12#define CXXUTILS_ATHDSOCBK_H 1
13
14#ifdef __cplusplus
15extern "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 */
31typedef 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 */
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
int(* ath_dso_event_cbk_t)(const struct ath_dso_event *, void *userdata)
Definition AthDsoCbk.h:31
int ath_dso_cbk_unregister(ath_dso_event_cbk_t cbk)
int ath_dso_cbk_register(ath_dso_event_cbk_t cbk, void *userdata)
-*- C -*- AthDsoCbk.h Header file for the dso callbacks api Author: S.Binetbinet@cern....
Definition AthDsoCbk.h:22
const char * fname
Definition AthDsoCbk.h:23