libalpm: take alpm_trans_t out of the public API
this type is only used internally by alpm Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
fbb29b5047
commit
2109de613a
3 changed files with 3 additions and 8 deletions
|
@ -113,12 +113,6 @@ typedef struct __alpm_db_t alpm_db_t;
|
||||||
*/
|
*/
|
||||||
typedef struct __alpm_pkg_t alpm_pkg_t;
|
typedef struct __alpm_pkg_t alpm_pkg_t;
|
||||||
|
|
||||||
/** Transaction structure used internally by libalpm
|
|
||||||
* @ingroup libalpm_trans
|
|
||||||
* */
|
|
||||||
typedef struct __alpm_trans_t alpm_trans_t;
|
|
||||||
|
|
||||||
|
|
||||||
/** The time type used by libalpm. Represents a unix time stamp
|
/** The time type used by libalpm. Represents a unix time stamp
|
||||||
* @ingroup libalpm_misc */
|
* @ingroup libalpm_misc */
|
||||||
typedef int64_t alpm_time_t;
|
typedef int64_t alpm_time_t;
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include "alpm_list.h"
|
#include "alpm_list.h"
|
||||||
#include "alpm.h"
|
#include "alpm.h"
|
||||||
|
#include "trans.h"
|
||||||
|
|
||||||
#ifdef HAVE_LIBCURL
|
#ifdef HAVE_LIBCURL
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
|
@ -36,7 +36,7 @@ typedef enum _alpm_transstate_t {
|
||||||
} alpm_transstate_t;
|
} alpm_transstate_t;
|
||||||
|
|
||||||
/* Transaction */
|
/* Transaction */
|
||||||
struct __alpm_trans_t {
|
typedef struct _alpm_trans_t {
|
||||||
/* bitfield of alpm_transflag_t flags */
|
/* bitfield of alpm_transflag_t flags */
|
||||||
int flags;
|
int flags;
|
||||||
alpm_transstate_t state;
|
alpm_transstate_t state;
|
||||||
|
@ -44,7 +44,7 @@ struct __alpm_trans_t {
|
||||||
alpm_list_t *add; /* list of (alpm_pkg_t *) */
|
alpm_list_t *add; /* list of (alpm_pkg_t *) */
|
||||||
alpm_list_t *remove; /* list of (alpm_pkg_t *) */
|
alpm_list_t *remove; /* list of (alpm_pkg_t *) */
|
||||||
alpm_list_t *skip_remove; /* list of (char *) */
|
alpm_list_t *skip_remove; /* list of (char *) */
|
||||||
};
|
} alpm_trans_t;
|
||||||
|
|
||||||
void _alpm_trans_free(alpm_trans_t *trans);
|
void _alpm_trans_free(alpm_trans_t *trans);
|
||||||
/* flags is a bitfield of alpm_transflag_t flags */
|
/* flags is a bitfield of alpm_transflag_t flags */
|
||||||
|
|
Loading…
Add table
Reference in a new issue