Minor changes:
* Moved the pmhandle_t extern decl around * Fixed a doxygen complaint
This commit is contained in:
parent
ca2544dbc2
commit
1568fd98d8
9 changed files with 3 additions and 14 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue