|
Atrinik Server 2.5
|
Go to the source code of this file.
Functions | |
| static void | updates_file_new (const char *filename, struct stat *sb) |
| static int | updates_file_compare (const void *a, const void *b) |
| static update_file_struct * | updates_file_find (const char *filename) |
| static void | updates_traverse (const char *path) |
| void | updates_init () |
| void | cmd_request_update (char *buf, int len, socket_struct *ns) |
Variables | |
| static update_file_struct * | update_files |
| static size_t | update_files_num |
Handles file updates that the client may request.
Definition in file updates.c.
| void cmd_request_update | ( | char * | buf, |
| int | len, | ||
| socket_struct * | ns | ||
| ) |
| static int updates_file_compare | ( | const void * | a, |
| const void * | b | ||
| ) | [static] |
Compare two entries of update_files.
| a | First entry to compare. |
| b | Second entry to compare. |
| static update_file_struct* updates_file_find | ( | const char * | filename | ) | [static] |
Find an entry in update_files based on its filename.
| filename | What to look for. |
| static void updates_file_new | ( | const char * | filename, |
| struct stat * | sb | ||
| ) | [static] |
Add a new file to update_files.
| filename | Path to the file to add. |
| sb | Stat buffer. |
| void updates_init | ( | ) |
| static void updates_traverse | ( | const char * | path | ) | [static] |
update_file_struct* update_files [static] |
size_t update_files_num [static] |
Number of update_files.
1.7.4