Loading...
Searching...
No Matches
lirc-utils.h
Go to the documentation of this file.
/****************************************************************************
** lirc-utils.h ************************************************************
****************************************************************************
*
* Miscellanious utility functions.
*
*/
#ifndef _UTIL_H
#define _UTIL_H
#include "lirc_log.h"
#ifdef __cplusplus
extern "C" {
#endif
const char* drop_sudo_root(int (*set_some_uid)(uid_t));
void drop_root_cli(int (*set_some_uid)(uid_t));
#ifdef __cplusplus
}
#endif
#endif
drop_root_cli
void drop_root_cli(int(*set_some_uid)(uid_t))
Default view part of drop_sudo_root.
Definition lirc-utils.c:81
drop_sudo_root
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
lirc_log.h
Logging functionality.