Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Stop exposing pkg_set_from* functions
Baptiste Daroussin committed 9 years ago
commit 7025812256a98b17da2e69c7a94afabd406b791d
parent 1fdfd60
3 files changed +3 -8
modified libpkg/libpkg.ver
@@ -139,8 +139,6 @@ global:
	pkg_script_get;
	pkg_set2;
	pkg_set_debug_level;
-
	pkg_set_from_file;
-
	pkg_set_from_fileat;
	pkg_set_rootdir;
	pkg_shlibs_provided;
	pkg_shlibs_required;
modified libpkg/pkg.h.in
@@ -700,12 +700,6 @@ int pkgdb_set2(struct pkgdb *db, struct pkg *pkg, ...);
#define pkgdb_set(db, pkg, ...) pkgdb_set2(db, pkg, __VA_ARGS__, -1)

/**
-
 * Read the content of a file into a buffer, then call pkg_set().
-
 */
-
int pkg_set_from_file(struct pkg *pkg, pkg_attr attr, const char *file, bool trimcr);
-
int pkg_set_from_fileat(int fd, struct pkg *pkg, pkg_attr attr, const char *file, bool trimcr);
-

-
/**
 * Set a new debug level used inside of pkg.
 * @param debug_level Debug level between 0 (no debugging) and 4 (max debugging).
 * @return Previous debug level.
modified libpkg/private/pkg.h
@@ -808,4 +808,7 @@ enum pkg_metalog_type {
	PKG_METALOG_LINK,
};

+
int pkg_set_from_file(struct pkg *pkg, pkg_attr attr, const char *file, bool trimcr);
+
int pkg_set_from_fileat(int fd, struct pkg *pkg, pkg_attr attr, const char *file, bool trimcr);
+

#endif