Radek Krejci | d0d1952 | 2015-09-02 13:49:25 +0200 | [diff] [blame] | 1 | /** |
| 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 Krejci | 9b81f5b | 2016-02-24 13:14:49 +0100 | [diff] [blame] | 8 | * 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 Vasko | afd416b | 2016-02-25 14:51:46 +0100 | [diff] [blame] | 11 | * |
Radek Krejci | 9b81f5b | 2016-02-24 13:14:49 +0100 | [diff] [blame] | 12 | * https://opensource.org/licenses/BSD-3-Clause |
Radek Krejci | d0d1952 | 2015-09-02 13:49:25 +0200 | [diff] [blame] | 13 | */ |
| 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 Vasko | 05ba9df | 2016-01-13 14:40:27 +0100 | [diff] [blame] | 23 | #ifdef __GNUC__ |
| 24 | # define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) |
| 25 | #else |
| 26 | # define UNUSED(x) UNUSED_ ## x |
| 27 | #endif |
| 28 | |
Radek Krejci | 14b1403 | 2015-10-21 15:19:43 +0200 | [diff] [blame] | 29 | /* |
| 30 | * Location of installed basic YIN/YANG schemas |
| 31 | */ |
Michal Vasko | ed6e0d3 | 2016-02-24 13:28:58 +0100 | [diff] [blame] | 32 | #define SCHEMAS_DIR "@CMAKE_INSTALL_PREFIX@/@DATA_INSTALL_DIR@" |
Radek Krejci | 14b1403 | 2015-10-21 15:19:43 +0200 | [diff] [blame] | 33 | |
Michal Vasko | 6b7c42e | 2016-03-02 15:46:41 +0100 | [diff] [blame] | 34 | /* |
| 35 | * Partial message read timeout in seconds |
| 36 | */ |
| 37 | #define NC_READ_TIMEOUT @READ_TIMEOUT@ |
| 38 | |
Radek Krejci | d0d1952 | 2015-09-02 13:49:25 +0200 | [diff] [blame] | 39 | #endif /* NC_CONFIG_H_ */ |