mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-04-05 13:09:19 +02:00
smarter pilerget suitable for batch export
This commit is contained in:
22
src/defs.h
22
src/defs.h
@@ -24,6 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include <openssl/sha.h>
|
||||
#include "tai.h"
|
||||
#include "config.h"
|
||||
|
||||
#define MSG_UNDEF -1
|
||||
@@ -47,7 +48,19 @@
|
||||
#define UNDEF 0
|
||||
#define READY 1
|
||||
#define BUSY 2
|
||||
#define PROCESSED 3
|
||||
|
||||
|
||||
#define MAXCHILDREN 64
|
||||
|
||||
|
||||
typedef void signal_func (int);
|
||||
|
||||
|
||||
struct child {
|
||||
pid_t pid;
|
||||
int messages;
|
||||
int status;
|
||||
};
|
||||
|
||||
|
||||
struct attachment {
|
||||
@@ -59,6 +72,13 @@ struct attachment {
|
||||
};
|
||||
|
||||
|
||||
struct ptr_array {
|
||||
uint64 ptr;
|
||||
char piler_id[RND_STR_LEN+2];
|
||||
int attachment_id;
|
||||
};
|
||||
|
||||
|
||||
struct list {
|
||||
char s[SMALLBUFSIZE];
|
||||
struct list *r;
|
||||
|
||||
Reference in New Issue
Block a user