#include "remove.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** Add a package to the transaction. */
int SYMEXPORT alpm_add_pkg(pmpkg_t *pkg)
{
/* Globals */
enum _pmerrno_t pm_errno SYMEXPORT;
+extern pmhandle_t *handle;
/** \addtogroup alpm_interface Interface Functions
* @brief Functions to initialize and release libalpm
#include "package.h"
#include "deps.h"
+/* global handle variable */
+extern pmhandle_t *handle;
#define LAZY_LOAD(info, errret) \
do { \
#include "package.h"
#include "deps.h" /* _alpm_splitdep */
+/* global handle variable */
+extern pmhandle_t *handle;
+
/**
* Open a package changelog for reading. Similar to fopen in functionality,
* except that the returned 'file stream' is from an archive.
#include "deps.h"
#include "dload.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** Update a package database
*
* An update of the package database \a db will be attempted. Unless
#include "log.h"
#include "deps.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
pmconflict_t *_alpm_conflict_new(const char *package1, const char *package2,
const char *reason)
{
#include "package.h"
#include "group.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** \addtogroup alpm_databases Database Functions
* @brief Functions to query and manipulate the database of libalpm
* @{
#include "db.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
void _alpm_dep_free(pmdepend_t *dep)
{
FREE(dep->name);
#include "trans.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
static int mount_point_cmp(const void *p1, const void *p2)
{
const alpm_mountpoint_t *mp1 = p1;
#include "util.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
#ifdef HAVE_LIBCURL
static double prevprogress; /* last download amount */
#endif
#include "alpm.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
const char SYMEXPORT *alpm_strerrorlast(void)
{
return alpm_strerror(pm_errno);
pgp_verify_t sigverify; /* Default signature verification level */
};
-/* global handle variable */
-extern pmhandle_t *handle;
-
pmhandle_t *_alpm_handle_new(void);
void _alpm_handle_free(pmhandle_t *handle);
#include "util.h"
#include "alpm.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** \addtogroup alpm_log Logging Functions
* @brief Functions to log using libalpm
* @{
#include "handle.h"
#include "deps.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** \addtogroup alpm_packages Package Functions
* @brief Functions to manipulate libalpm packages
* @{
#include "deps.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
int SYMEXPORT alpm_remove_pkg(pmpkg_t *pkg)
{
pmtrans_t *trans;
#include "diskspace.h"
#include "signing.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** Check for new version of pkg in sync repos
* (only the first occurrence is considered in sync)
*/
#include "sync.h"
#include "alpm.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
/** \addtogroup alpm_trans Transaction Functions
* @brief Functions to manipulate libalpm transactions
* @{
#include "alpm_list.h"
#include "handle.h"
+/* global handle variable */
+extern pmhandle_t *handle;
+
#ifndef HAVE_STRSEP
/* This is a replacement for strsep which is not portable (missing on Solaris).
* Copyright (c) 2001 by François Gouget <fgouget_at_codeweavers.com> */