Statistics
| Branch: | Revision:

chunker-player / event_http / ul_commons.h @ 59c85ad1

History | View | Annotate | Download (567 Bytes)

1
#ifndef _UL_COMMONS_H
2
#define _UL_COMMONS_H
3

    
4

    
5
#define UL_RETURN_OK 0
6
#define UL_RETURN_FAIL -1
7
#define UL_IP_ADDRESS_SIZE 20
8
#define UL_PATH_SIZE 128
9
#define UL_URL_SIZE 256
10
#define UL_MAX_EXTERNAL_APPLICATIONS 5
11

    
12
/**
13
 * define a new data type for the aggregated info about an application registering itself as chunk receiver
14
 */
15
typedef struct {
16
  char address[UL_IP_ADDRESS_SIZE];
17
  int port;
18
  char path[UL_PATH_SIZE];
19
  int status;
20
} ApplicationInfo;
21

    
22
/**
23
 * commodity function to print a block of bytes
24
 */
25
void print_block(const uint8_t *b, int size);
26

    
27

    
28
#endif