Upgrade libutils to C++

This commit is contained in:
topjohnwu
2018-11-03 03:06:01 -04:00
parent ef6677f43d
commit 6339ba6bfb
15 changed files with 200 additions and 304 deletions

View File

@ -1,6 +1,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
extern void (*freecon)(char * con);
extern int (*setcon)(const char * con);
extern int (*getfilecon)(const char *path, char ** con);
@ -10,3 +14,7 @@ extern int (*lsetfilecon)(const char *path, const char * con);
void dload_selinux();
void restorecon();
#ifdef __cplusplus
}
#endif