2015-08-02 11:41:05 +08:00
|
|
|
#ifndef __KSTARTUP_H
|
|
|
|
#define __KSTARTUP_H
|
|
|
|
|
2016-01-10 21:04:55 +08:00
|
|
|
struct artiq_list {
|
|
|
|
int32_t length;
|
|
|
|
int32_t *elements;
|
|
|
|
};
|
|
|
|
|
2015-08-02 11:41:05 +08:00
|
|
|
long long int now_init(void);
|
|
|
|
void now_save(long long int now);
|
|
|
|
int watchdog_set(int ms);
|
|
|
|
void watchdog_clear(int id);
|
2015-08-09 21:16:41 +08:00
|
|
|
void send_rpc(int service, const char *tag, ...);
|
2015-08-10 01:17:00 +08:00
|
|
|
int recv_rpc(void *slot);
|
2016-01-10 21:04:55 +08:00
|
|
|
struct artiq_list cache_get(const char *key);
|
|
|
|
void cache_put(const char *key, struct artiq_list value);
|
2016-02-15 06:54:54 +08:00
|
|
|
void core_log(const char *fmt, ...);
|
2015-08-02 11:41:05 +08:00
|
|
|
|
|
|
|
#endif /* __KSTARTUP_H */
|