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 | * |
| 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 Vasko | 05ba9df | 2016-01-13 14:40:27 +0100 | [diff] [blame] | 31 | #ifdef __GNUC__ |
| 32 | # define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) |
| 33 | #else |
| 34 | # define UNUSED(x) UNUSED_ ## x |
| 35 | #endif |
| 36 | |
Radek Krejci | 14b1403 | 2015-10-21 15:19:43 +0200 | [diff] [blame] | 37 | /* |
| 38 | * Location of installed basic YIN/YANG schemas |
| 39 | */ |
| 40 | #define SCHEMAS_DIR "@DATA_INSTALL_DIR@/" |
| 41 | |
Radek Krejci | d0d1952 | 2015-09-02 13:49:25 +0200 | [diff] [blame] | 42 | #endif /* NC_CONFIG_H_ */ |