]>
Commit | Line | Data |
---|---|---|
64ab0546 | 1 | // @(#) $Id$ |
6634349e | 2 | |
3 | #ifndef ALIHLTMISC_H | |
4 | #define ALIHLTMISC_H | |
5 | //* This file is property of and copyright by the ALICE HLT Project * | |
6 | //* ALICE Experiment at CERN, All rights reserved. * | |
7 | //* See cxx source for full Copyright notice */ | |
8 | ||
9 | /** @file AliHLTMisc.h | |
10 | @author Matthias Richter | |
11 | @date | |
12 | @brief Definition of various glue functions implemented in dynamically | |
13 | loaded libraries | |
14 | */ | |
15 | ||
16 | #define ALIHLTMISC_LIBRARY "libHLTrec.so" | |
17 | #define ALIHLTMISC_INIT_CDB "AliHLTMiscInitCDB" | |
18 | #define ALIHLTMISC_SET_CDB_RUNNO "AliHLTMiscSetCDBRunNo" | |
19 | ||
20 | #ifdef __cplusplus | |
21 | extern "C" { | |
22 | #endif | |
23 | ||
24 | /** | |
25 | * Init the CDB access for the running instance. | |
26 | * The method is used from the C wrapper interface utilized by the on-line | |
27 | * framework. The path of the (H)CDB is set to the specified path.<br> | |
28 | * When running from AliRoot, the CDB path is set in the startup of the | |
703bcca6 | 29 | * reconstruction.<br> |
30 | * If cdbpath is nil or empty and the CDB is not already initialized, the | |
31 | * CDB storage is set to local://$ALICE_ROOT and the run no to 0. | |
6634349e | 32 | * @param cdbpath path to the CDB |
33 | * @return neg. error code if failed | |
34 | * @note function implemented in libHLTrec | |
35 | */ | |
36 | int AliHLTMiscInitCDB(const char* cdbpath); | |
37 | typedef int (*AliHLTMiscInitCDB_t)(const char* cdbpath); | |
38 | ||
6634349e | 39 | /** |
40 | * Init the Run no for the CDB access. | |
7e914051 | 41 | * @param runNo the run no |
6634349e | 42 | * @return neg. error code if failed |
43 | * @note function implemented in libHLTrec | |
44 | */ | |
45 | int AliHLTMiscSetCDBRunNo(int runNo); | |
46 | typedef int (*AliHLTMiscSetCDBRunNo_t)(int runNo); | |
47 | ||
48 | #ifdef __cplusplus | |
49 | } | |
50 | #endif | |
51 | #endif //ALIHLTMISC_H |