summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg.h
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-09 01:04:33 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-09 01:04:33 (EST)
commit5cec98121cd85b63fcd80169a9f51fbf1f9da980 (patch)
treef5ea0258c2211e726d08583cb1b360f33f6995b4 /libopkg/opkg.h
parent642814351a88f15071b1aee34f769ee7a1a3beb7 (diff)
Get rid of opkg_package_t.
We can't provide all the useful info without duplicating pkg_t, so just use pkg_t. git-svn-id: http://opkg.googlecode.com/svn/trunk@473 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg.h')
-rw-r--r--libopkg/opkg.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/libopkg/opkg.h b/libopkg/opkg.h
index 7444faf..9cb977e 100644
--- a/libopkg/opkg.h
+++ b/libopkg/opkg.h
@@ -18,11 +18,14 @@
#ifndef OPKG_H
#define OPKG_H
-typedef struct _opkg_package_t opkg_package_t;
+#include "pkg.h"
+#include "opkg_message.h"
+
+//typedef struct _opkg_package_t opkg_package_t;
typedef struct _opkg_progress_data_t opkg_progress_data_t;
typedef void (*opkg_progress_callback_t) (const opkg_progress_data_t *progress, void *user_data);
-typedef void (*opkg_package_callback_t) (opkg_package_t *package, void *user_data);
+typedef void (*opkg_package_callback_t) (pkg_t *pkg, void *user_data);
enum _opkg_action_t
{
@@ -62,12 +65,9 @@ struct _opkg_progress_data_t
{
int percentage;
int action;
- opkg_package_t *package;
+ pkg_t *pkg;
};
-opkg_package_t* opkg_package_new ();
-void opkg_package_free (opkg_package_t *package);
-
int opkg_new (void);
void opkg_free (void);
int opkg_re_read_config_files (void);
@@ -82,7 +82,7 @@ int opkg_update_package_lists (opkg_progress_callback_t callback, void *user_dat
int opkg_list_packages (opkg_package_callback_t callback, void *user_data);
int opkg_list_upgradable_packages (opkg_package_callback_t callback, void *user_data);
-opkg_package_t* opkg_find_package (const char *name, const char *version, const char *architecture, const char *repository);
+pkg_t* opkg_find_package (const char *name, const char *version, const char *architecture, const char *repository);
int opkg_repository_accessibility_check(void);