Starting to clean up the public API, move private stuff into xbps_api_impl.h.

This commit is contained in:
Juan RP
2010-11-13 03:18:58 +01:00
parent 3b931475c0
commit ffc255b715
31 changed files with 184 additions and 111 deletions

View File

@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <xbps_api.h>
#include "defs.h"

View File

@@ -26,6 +26,16 @@
#ifndef _XBPS_BIN_DEFS_H_
#define _XBPS_BIN_DEFS_H_
#ifdef DEBUG
#define DPRINTF(x) printf x
#else
#define DPRINTF(x)
#endif
#ifndef __UNCONST
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
#endif
int xbps_install_new_pkg(const char *);
int xbps_update_pkg(const char *);
int xbps_autoupdate_pkgs(bool);
@@ -40,4 +50,5 @@ int show_pkg_info_from_metadir(const char *);
int show_pkg_files_from_metadir(const char *);
int find_files_in_packages(const char *);
#endif /* !_XBPS_BIN_DEFS_H_ */

View File

@@ -29,6 +29,7 @@
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <assert.h>
#include <xbps_api.h>
#include "defs.h"

View File

@@ -29,6 +29,7 @@
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <assert.h>
#include <xbps_api.h>
#include "defs.h"

View File

@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <xbps_api.h>
#include "defs.h"

View File

@@ -30,6 +30,7 @@
#include <errno.h>
#include <limits.h>
#include <libgen.h>
#include <assert.h>
#include <xbps_api.h>
#include "defs.h"

View File

@@ -29,10 +29,15 @@
#include <string.h>
#include <errno.h>
#include <fnmatch.h>
#include <assert.h>
#include <xbps_api.h>
#include "defs.h"
#ifndef __UNCONST
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
#endif
void
show_pkg_info_only_repo(prop_dictionary_t dict)
{

View File

@@ -29,6 +29,7 @@
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <assert.h>
#include <xbps_api.h>