33 lines
599 B
C
33 lines
599 B
C
#pragma once
|
|
|
|
typedef enum {
|
|
INSERT,
|
|
REMOVE
|
|
} update_request_type;
|
|
|
|
int is_listed_as_active( const char *path);
|
|
|
|
void add_to_active( const char *path);
|
|
|
|
void remove_from_active( const char *path);
|
|
|
|
int active_list_count();
|
|
|
|
int is_listed_for_removal( const char *path);
|
|
|
|
int is_listed_for_insertion( const char *path);
|
|
|
|
void add_to_update_list( const char *path, update_request_type type);
|
|
|
|
void remove_from_update_list( const char *path);
|
|
|
|
void update_list_drain_into_active();
|
|
|
|
int update_list_get_delta();
|
|
|
|
|
|
/* debug only (could remove) */
|
|
void print_active_list();
|
|
|
|
void print_update_list();
|