LIRC libraries
LinuxInfraredRemoteControl
lirc-utils.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** lirc-utils.h ************************************************************
3 ****************************************************************************
4 *
5 * Miscellanious utility functions.
6 *
7 */
8 
16 #ifndef _UTIL_H
17 #define _UTIL_H
18 
19 #include "lirc_log.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
36 const char* drop_sudo_root(int (*set_some_uid)(uid_t));
37 
43 void drop_root_cli(int (*set_some_uid)(uid_t));
44 
45 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif
Logging functionality.
void drop_root_cli(int(*set_some_uid)(uid_t))
Default view part of drop_sudo_root.
Definition: lirc-utils.c:81
const char * drop_sudo_root(int(*set_some_uid)(uid_t))
Try to drop possible root privileges, returning new user or "" on error.
Definition: lirc-utils.c:28