Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bindings/alpm.i
blob: 661f169488f6d060ae251aa8fd36e7e3c2843619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#if defined(SWIGPERL)
%module "Alpm::Core"
#else
%module alpm
#endif
%include "cpointer.i"

/* Wrap a class interface around a "long *" */
%pointer_class(long, longp);

/* Create casting functions */

%pointer_cast(void *, long *, void_to_long);
%pointer_cast(void *, char *, void_to_char);
%pointer_cast(void *, unsigned long, void_to_unsigned_long);
%pointer_cast(void *, pmlist_t *, void_to_pmlist);
%pointer_cast(void *, pmpkg_t *, void_to_pmpkg);
%pointer_cast(void *, pmgrp_t *, void_to_pmgrp);
%pointer_cast(void *, pmsyncpkg_t *, void_to_pmsyncpkg);
%pointer_cast(void *, pmdb_t *, void_to_pmdb);
%pointer_cast(void *, pmconflict_t *, void_to_pmconflict);

%include "alpm.h"