diff options
Diffstat (limited to 'src/pacsync.h')
-rw-r--r-- | src/pacsync.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/pacsync.h b/src/pacsync.h index d7c666f3..1838a684 100644 --- a/src/pacsync.h +++ b/src/pacsync.h @@ -21,8 +21,31 @@ #ifndef _PAC_PACSYNC_H #define _PAC_PACSYNC_H +typedef struct __server_t { + unsigned short islocal; + char* server; + char* path; +} server_t; + +typedef struct __sync_t { + char* treename; + PMList *servers; +} sync_t; + +/* linking structs */ +typedef struct __dbsync_t { + pacdb_t *db; + sync_t *sync; + PMList *pkgcache; +} dbsync_t; + +typedef struct __syncpkg_t { + pkginfo_t *pkg; + dbsync_t *dbs; +} syncpkg_t; + int sync_synctree(); -int downloadfiles(char *server, char *remotepath, char *localpath, PMList *files); +int downloadfiles(PMList *servers, char *localpath, PMList *files); #endif |