blob: 564ce975921e83ddd8fa3c9213813a9bb0c8712f [file] [log] [blame]
Radek Krejcid0d19522015-09-02 13:49:25 +02001/**
2 * \file config.h
3 * \author Radek Krejci <rkrejci@cesnet.cz>
4 * \brief libnetconf2 various configuration settings.
5 *
6 * Copyright (c) 2015 CESNET, z.s.p.o.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
16 * distribution.
17 * 3. Neither the name of the Company nor the names of its contributors
18 * may be used to endorse or promote products derived from this
19 * software without specific prior written permission.
20 *
21 */
22
23#ifndef NC_CONFIG_H_
24#define NC_CONFIG_H_
25
26/*
27 * Mark all objects as hidden and export only objects explicitly marked to be part of the public API.
28 */
29#define API __attribute__((visibility("default")))
30
Michal Vasko05ba9df2016-01-13 14:40:27 +010031#ifdef __GNUC__
32# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
33#else
34# define UNUSED(x) UNUSED_ ## x
35#endif
36
Radek Krejci14b14032015-10-21 15:19:43 +020037/*
38 * Location of installed basic YIN/YANG schemas
39 */
40#define SCHEMAS_DIR "@DATA_INSTALL_DIR@/"
41
Radek Krejcid0d19522015-09-02 13:49:25 +020042#endif /* NC_CONFIG_H_ */