File: sysctl.h

package info (click to toggle)
ofono 2.18-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,064 kB
  • sloc: ansic: 224,979; sh: 5,012; python: 4,040; makefile: 956
file content (32 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Embedded Linux library
 * Copyright (C) 2012  Intel Corporation
 * Copyright (C) 2023  Cruise LLC
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#ifndef __ELL_SYSCTL_H
#define __ELL_SYSCTL_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

int l_sysctl_get_u32(uint32_t *out_v, const char *format, ...)
			__attribute__((format(printf, 2, 3)));
int l_sysctl_set_u32(uint32_t v, const char *format, ...)
			__attribute__((format(printf, 2, 3)));

int l_sysctl_get_char(char *out_c, const char *format, ...)
			__attribute__((format(printf, 2, 3)));
int l_sysctl_set_char(char c, const char *format, ...)
			__attribute__((format(printf, 2, 3)));

#ifdef __cplusplus
}
#endif

#endif /* __ELL_SYSCTL_H */