diff options
author | Judd Vinet <judd@archlinux.org> | 2002-09-16 07:22:13 +0200 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2002-09-16 07:22:13 +0200 |
commit | 6a654187b68d37211dc8af301e611ec4a7f132c4 (patch) | |
tree | c215ad278a485fac7c0361fa9d5fcae8b101929b /src/pacsync.h | |
parent | 62a783a6bd7649ccd162e32278098080bf450c7b (diff) | |
download | pacman-6a654187b68d37211dc8af301e611ec4a7f132c4.tar.gz pacman-6a654187b68d37211dc8af301e611ec4a7f132c4.tar.xz |
Imported from pacman-2.1.tar.gz
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 |