blob: 172de9ab21cff75c7fbe2bb0ba1eec6d96b6b0c6 [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 *
Radek Krejci9b81f5b2016-02-24 13:14:49 +01008 * This source code is licensed under BSD 3-Clause License (the "License").
9 * You may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
Michal Vaskoafd416b2016-02-25 14:51:46 +010011 *
Radek Krejci9b81f5b2016-02-24 13:14:49 +010012 * https://opensource.org/licenses/BSD-3-Clause
Radek Krejcid0d19522015-09-02 13:49:25 +020013 */
14
15#ifndef NC_CONFIG_H_
16#define NC_CONFIG_H_
17
18/*
19 * Mark all objects as hidden and export only objects explicitly marked to be part of the public API.
20 */
21#define API __attribute__((visibility("default")))
22
Michal Vasko05ba9df2016-01-13 14:40:27 +010023#ifdef __GNUC__
24# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
25#else
26# define UNUSED(x) UNUSED_ ## x
27#endif
28
Radek Krejci14b14032015-10-21 15:19:43 +020029/*
30 * Location of installed basic YIN/YANG schemas
31 */
Michal Vaskoed6e0d32016-02-24 13:28:58 +010032#define SCHEMAS_DIR "@CMAKE_INSTALL_PREFIX@/@DATA_INSTALL_DIR@"
Radek Krejci14b14032015-10-21 15:19:43 +020033
Michal Vasko6b7c42e2016-03-02 15:46:41 +010034/*
35 * Partial message read timeout in seconds
36 */
37#define NC_READ_TIMEOUT @READ_TIMEOUT@
38
Radek Krejcid0d19522015-09-02 13:49:25 +020039#endif /* NC_CONFIG_H_ */