Project

General

Profile

Revision cc7646f9

IDcc7646f9d14d13acbf68e7ae50ec2e645885c4d7
Parent 5e03b78d
Child 4f824e14

Added by Thomas Mullins almost 11 years ago

Major changes to mainbox code.

-Added local cache for RFID -> tool permissions
-Queries new page /crm/roboauth/%08x, which gives bitmask of all tool
permissions instead of just one
-Added pid file at /var/run/tooltron.pid
-Now must be run as "tooltron run" and also has "tooltron refresh" and
"tooltron clear" which send signals to the pid in the pid file
-Other things I'm forgetting

View differences:

mainbox/util.h
1 1
#ifndef UTIL_H
2 2
#define UTIL_H
3 3

  
4
/* Reads in an entire file. Returns NULL on error, or a malloc'd pointer to a
5
 * string which should later be freed. */
4
#include <unistd.h>
5

  
6 6
char *read_file(const char *filename);
7
int create_pid_file();
8
pid_t read_pid_file();
9
void remove_pid_file();
7 10

  
8 11
#endif

Also available in: Unified diff