File: rsb_init.h

package info (click to toggle)
librsb 1.2.0-rc5-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 38,384 kB
  • ctags: 21,947
  • sloc: ansic: 429,401; f90: 84,180; sh: 12,892; objc: 686; makefile: 657; awk: 18; sed: 1
file content (47 lines) | stat: -rw-r--r-- 2,322 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*                                                                                                                            

Copyright (C) 2008-2015 Michele Martone

This file is part of librsb.

librsb is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

librsb 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 librsb; see the file COPYING.
If not, see <http://www.gnu.org/licenses/>.

*/
/* @cond INNERDOC */
/**
 * @file
 * @brief Initialization code.
 * @author Michele Martone
 * */
#ifndef RSB_INIT_H_INCLUDED
#define RSB_INIT_H_INCLUDED

#define RSB_DO_REINIT_SINGLE_VALUE(IOF,IOP,IOS,ERRVAL) { enum rsb_opt_t keys[]={IOF}; void*values[]={(IOP)}; struct rsb_initopts io; io.action=(IOS); io.keys=keys; io.values=values; io.n_pairs=1; ERRVAL=rsb__do_reinit(&io); }
#define RSB_DO_REINIT_SINGLE_VALUE_C_IOP(IOF,IOP,IOS,ERRVAL) { enum rsb_opt_t keys[]={IOF}; const void*values[]={(IOP)}; struct rsb_initopts io; io.action=(IOS); io.keys=keys; (io.values)=(void**)values; io.n_pairs=1; ERRVAL=rsb__do_reinit(&io); }
#define RSB_DO_REINIT_SINGLE_VALUE_SET(IOF,IOP,ERRVAL) RSB_DO_REINIT_SINGLE_VALUE(IOF,IOP,RSB_IO_SPECIFIER_SET,ERRVAL)
#define RSB_DO_REINIT_SINGLE_VALUE_GET(IOF,IOP,ERRVAL) RSB_DO_REINIT_SINGLE_VALUE(IOF,IOP,RSB_IO_SPECIFIER_GET,ERRVAL)

rsb_err_t rsb__init_mem_hierarchy_info(void);
rsb_err_t rsb__set_mem_hierarchy_info(const rsb_char_t * mhi);
rsb_err_t rsb__dump_mem_hierarchy_info(void);
rsb_err_t rsb__init_check_for_constants_correctness(void);
rsb_err_t rsb__init_check_for_system_constants_correctness(void);
const rsb_char_t * rsb__init_get_mem_hierarchy_info_string(rsb_bool_t verbose);
const rsb_char_t * rsb__get_mem_hierarchy_info_string(rsb_char_t *usmhib);
rsb_err_t rsb__do_init(struct rsb_initopts * io);
rsb_err_t rsb__do_reinit(struct rsb_initopts * io);
rsb_err_t rsb__do_exit(void);
#endif /* RSB_INIT_H_INCLUDED */
/* @endcond */