Changeset 4416
- Timestamp:
- 05/08/08 13:37:04 (5 years ago)
- Location:
- trunk/src/target/opkg
- Files:
-
- 3 edited
-
configure.ac (modified) (1 diff)
-
libopkg/opkg.c (modified) (4 diffs)
-
libopkg/opkg.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/opkg/configure.ac
r4415 r4416 1 1 # Process this file with autoconf to produce a configure script 2 2 AC_INIT(libopkg/libopkg.c) 3 AM_INIT_AUTOMAKE([opkg], [0.1. 1])3 AM_INIT_AUTOMAKE([opkg], [0.1.2]) 4 4 AM_CONFIG_HEADER(libopkg/config.h) 5 5 -
trunk/src/target/opkg/libopkg/opkg.c
r4415 r4416 46 46 47 47 #define progress(d, p) d.percentage = p; if (progress_callback) progress_callback (opkg, &d, user_data); 48 #define OLD_PKG_TO_NEW(pkg) opkg_package_new_with_values (pkg->name, pkg->version, pkg->architecture, pkg->description, pkg->tags, (pkg->state_status == SS_INSTALLED));48 #define OLD_PKG_TO_NEW(pkg) opkg_package_new_with_values (pkg->name, pkg->version, pkg->architecture, pkg->description, pkg->tags, pkg->url, (pkg->size ? atoi (pkg->size) : 0), (pkg->state_status == SS_INSTALLED)); 49 49 50 50 /** Private Functions ***/ … … 146 146 opkg_package_t * 147 147 opkg_package_new_with_values (const char *name, const char *version, 148 const char *arch, const char *desc, const char *tags, int installed)148 const char *arch, const char *desc, const char *tags, const char *url, int size, int installed) 149 149 { 150 150 opkg_package_t *package; … … 158 158 package->description = sstrdup (desc); 159 159 package->tags = sstrdup (tags); 160 package->url = sstrdup (url); 161 162 package->size = size; 160 163 package->installed = (installed != 0); 161 164 … … 171 174 free (p->description); 172 175 free (p->tags); 176 free (p->url); 173 177 174 178 free (p); -
trunk/src/target/opkg/libopkg/opkg.h
r4415 r4416 38 38 char *description; 39 39 char *tags; 40 char *url; 41 int size; 40 42 int installed; 41 43 }; … … 49 51 50 52 opkg_package_t* opkg_package_new (); 51 opkg_package_t* opkg_package_new_with_values (const char *name, const char *version, const char *arch, const char *desc, const char *tags, int installed);53 opkg_package_t* opkg_package_new_with_values (const char *name, const char *version, const char *arch, const char *desc, const char *tags, const char *url, int size, int installed); 52 54 void opkg_package_free (opkg_package_t *package); 53 55
Note: See TracChangeset
for help on using the changeset viewer.
