Minor changes:

* Moved the pmhandle_t extern decl around
    * Fixed a doxygen complaint
This commit is contained in:
Aaron Griffin 2006-10-21 01:27:35 +00:00
parent ca2544dbc2
commit 1568fd98d8
9 changed files with 3 additions and 14 deletions

View file

@ -58,8 +58,6 @@
#include "remove.h" #include "remove.h"
#include "handle.h" #include "handle.h"
extern pmhandle_t *handle;
static int add_faketarget(pmtrans_t *trans, char *name) static int add_faketarget(pmtrans_t *trans, char *name)
{ {
char *ptr, *p; char *ptr, *p;

View file

@ -302,7 +302,7 @@ int alpm_db_setserver(pmdb_t *db, char *url)
} }
/** Update a package database /** Update a package database
* @param level if true, then forces the update, otherwise update only in case * @param force if true, then forces the update, otherwise update only in case
* @param db pointer to the package database to update * @param db pointer to the package database to update
* @return 0 on success, > 0 on error (pm_errno is set accordingly), < 0 if up * @return 0 on success, > 0 on error (pm_errno is set accordingly), < 0 if up
* to date * to date

View file

@ -44,8 +44,6 @@
#include "error.h" #include "error.h"
#include "handle.h" #include "handle.h"
extern pmhandle_t *handle;
int _alpm_db_open(pmdb_t *db) int _alpm_db_open(pmdb_t *db)
{ {
if(db == NULL) { if(db == NULL) {

View file

@ -50,8 +50,6 @@
#include "cache.h" #include "cache.h"
#include "alpm.h" #include "alpm.h"
extern pmhandle_t *handle;
pmdb_t *_alpm_db_new(char *root, char* dbpath, char *treename) pmdb_t *_alpm_db_new(char *root, char* dbpath, char *treename)
{ {
pmdb_t *db; pmdb_t *db;

View file

@ -59,6 +59,8 @@ typedef struct __pmhandle_t {
pmlist_t *needles; /* for searching */ pmlist_t *needles; /* for searching */
} pmhandle_t; } pmhandle_t;
extern pmhandle_t *handle;
#define FREEHANDLE(p) do { if (p) { _alpm_handle_free(p); p = NULL; } } while (0) #define FREEHANDLE(p) do { if (p) { _alpm_handle_free(p); p = NULL; } } while (0)
pmhandle_t *_alpm_handle_new(void); pmhandle_t *_alpm_handle_new(void);

View file

@ -58,8 +58,6 @@
#include "handle.h" #include "handle.h"
#include "alpm.h" #include "alpm.h"
extern pmhandle_t *handle;
int _alpm_remove_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name) int _alpm_remove_loadtarget(pmtrans_t *trans, pmdb_t *db, char *name)
{ {
pmpkg_t *info; pmpkg_t *info;

View file

@ -38,7 +38,6 @@
#include "util.h" #include "util.h"
#include "handle.h" #include "handle.h"
extern pmhandle_t *handle;
FtpCallback pm_dlcb = NULL; FtpCallback pm_dlcb = NULL;
/* progress bar */ /* progress bar */
char *pm_dlfnm=NULL; char *pm_dlfnm=NULL;

View file

@ -55,8 +55,6 @@
#include "handle.h" #include "handle.h"
#include "server.h" #include "server.h"
extern pmhandle_t *handle;
pmsyncpkg_t *_alpm_sync_new(int type, pmpkg_t *spkg, void *data) pmsyncpkg_t *_alpm_sync_new(int type, pmpkg_t *spkg, void *data)
{ {
pmsyncpkg_t *sync; pmsyncpkg_t *sync;

View file

@ -39,8 +39,6 @@
#include "sync.h" #include "sync.h"
#include "alpm.h" #include "alpm.h"
extern pmhandle_t *handle;
pmtrans_t *_alpm_trans_new() pmtrans_t *_alpm_trans_new()
{ {
pmtrans_t *trans; pmtrans_t *trans;