syslog_ng_sys/cfg.rs
1// Copyright (c) 2016 Tibor Benke <ihrwein@gmail.com>
2//
3// Licensed under the Apache License, Version 2.0
4// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
5// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. All files in the project carrying such notice may not be copied,
7// modified, or distributed except according to those terms.
8
9use ::types::*;
10
11pub enum GlobalConfig {}
12
13#[link(name = "syslog-ng")]
14extern "C" {
15 pub fn cfg_get_user_version(cfg: *const GlobalConfig) -> c_int;
16 pub fn cfg_get_parsed_version(cfg: *const GlobalConfig) -> c_int;
17 pub fn cfg_get_filename(cfg: *const GlobalConfig) -> *const c_char;
18 pub fn cfg_new(version: c_int) -> *mut GlobalConfig;
19 pub fn cfg_free(slf: *mut GlobalConfig);
20}