#define STRIP_TRAILINGSPACE (1 << 0)
#define STRIP_COMMENTS (1 << 1)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup rpmbuild
* Create and initialize rpmSpec structure.
* @return spec spec file control structure
RPM_GNUC_INTERNAL
rpmRC packageSources(rpmSpec spec, char **cookie);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMBUILD_INTERNAL_H */
#include <rpm/rpmtypes.h>
#include <rpm/rpmds.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup rpmbuild
* Destroy uid/gid caches.
*/
RPM_GNUC_INTERNAL
int rpmlibNeedsFeature(Header h, const char * feature, const char * featureEVR);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMBUILD_MISC_H */
DB * dbi_db; /*!< Berkeley DB * handle */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup dbi
* Return new configured index database handle instance.
* @param rpmdb rpm database
RPM_GNUC_INTERNAL
dbiIndexType dbiType(dbiIndex dbi);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _DBI_H */
#include <rpm/rpmutil.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup rpmchroot
* Set or clear process-wide chroot directory.
* Calling this while chrooted is an error.
/* RPM_GNUC_INTERNAL */
int rpmChrootDone(void);
+#ifdef __cplusplus
+}
+#endif
+
+
#endif /* _RPMCHROOT_H */
int nrefs; /*!< Reference count. */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
RPM_GNUC_INTERNAL
int rpmfiDIIndex(rpmfi fi, int dx);
/* XXX can't be internal as build code needs this */
FSM_t rpmfiFSM(rpmfi fi);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMFI_INTERNAL_H */
int otherFileNum;
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
RPM_GNUC_INTERNAL
rpmfs rpmfsNew(Header h, rpmElementType type);
/* XXX this should be internal too but build code needs for now */
void rpmfsSetAction(rpmfs fs, unsigned int ix, rpmFileAction action);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMFS_H */
#ifndef _RPMLIBLUA_H
#define _RPMLIBLUA_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Initialize Lua subsystem & register all our extensions */
void rpmLuaInit(void);
/* Shutdown Lua subsystem */
void rpmLuaFree(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMLIBLUA_H */
typedef struct rpmlock_s * rpmlock;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
RPM_GNUC_INTERNAL
rpmlock rpmlockAcquire(const char *lock_path, const char *descr);
RPM_GNUC_INTERNAL
rpmlock rpmlockFree(rpmlock lock);
+#ifdef __cplusplus
+}
+#endif
+
#endif
rpmscriptFlags flags; /* flags to control operation */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
RPM_GNUC_INTERNAL
rpmScript rpmScriptFromTag(Header h, rpmTag scriptTag);
rpmRC rpmScriptRun(rpmScript script, int arg1, int arg2, FD_t scriptFd,
ARGV_const_t prefixes, int warn_only, int selinux);
+#ifdef __cplusplus
+}
+#endif
#endif /* _RPMSCRIPT_H */
*/
typedef struct tsortInfo_s * tsortInfo;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/** \ingroup rpmte
* Create a transaction element.
* @param ts transaction set
RPM_GNUC_INTERNAL
rpmRC rpmteSetupCollectionPlugins(rpmte te);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _RPMTE_INTERNAL_H */
int nrefs; /*!< Reference count. */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
RPM_GNUC_INTERNAL
tsMembers rpmtsMembers(rpmts ts);
RPM_GNUC_INTERNAL
rpmlock rpmtsAcquireLock(rpmts ts);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* _RPMTS_INTERNAL_H */
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* returns malloced base64 encoded string
* lines are split with \n characters to be nearest lower multiple of linelen
* if linelen/4 == 0 lines are not split
* returns NULL on failures
*/
char *b64crc(const unsigned char *data, size_t len);
+
+#ifdef __cplusplus
+}
+#endif
typedef int (*rpmhookFunc) (rpmhookArgs args, void *data);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
rpmhookArgs rpmhookArgsNew(int argc);
rpmhookArgs rpmhookArgsFree(rpmhookArgs args);
void rpmhookCall(const char *name, const char *argt, ...);
void rpmhookCallArgs(const char *name, rpmhookArgs args);
+#ifdef __cplusplus
+}
+#endif
+
#endif
typedef struct rpmlua_s * rpmlua;
typedef struct rpmluav_s * rpmluav;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
rpmlua rpmluaNew(void);
rpmlua rpmluaFree(rpmlua lua);
rpmlua rpmluaGetGlobalState(void);
int rpmluavKeyIsNum(rpmluav var);
int rpmluavValueIsNum(rpmluav var);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* RPMLUA_H */