bindtextdomain(PACKAGE_TARNAME, "/usr/share/locale");
textdomain(PACKAGE_TARNAME);
- // Initialize the pakfire library
- int r = pakfire_init();
- if (r)
- return NULL;
-
// Create the module
PyObject* module = PyModule_Create(&moduledef);
if (!module)
#include <pakfire/types.h>
-int pakfire_init();
-
Pakfire pakfire_create(const char* path, const char* arch);
Pakfire pakfire_ref(Pakfire pakfire);
LIBPAKFIRE_0 {
global:
# pakfire
- pakfire_init;
pakfire_cache_age;
pakfire_cache_stat;
pakfire_count_packages;
int nrefs;
};
-PAKFIRE_EXPORT int pakfire_init() {
- return 0;
-}
-
static int log_priority(const char* priority) {
char* end;
const char* TEST_SRC_PATH = ABS_TOP_SRCDIR "/tests";
-int testsuite_init() {
- // Initialize the pakfire library
- int r = pakfire_init();
- if (r)
- return r;
-
- return 0;
-}
-
static int test_run(test_t* t) {
LOG("running %s\n", t->name);
size_t left;
} testsuite_t;
-int testsuite_init();
testsuite_t* testsuite_create(size_t n);
int testsuite_add_test(testsuite_t* ts, const char* name, test_function_t func);
int testsuite_run(testsuite_t* ts);