2006-10-15 15:38:02 -04:00
|
|
|
#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 */
|
|
|
|
|
2006-10-21 16:16:55 -04:00
|
|
|
%pointer_cast(void *, long *, void_to_long);
|
2006-10-15 15:38:02 -04:00
|
|
|
%pointer_cast(void *, char *, void_to_char);
|
|
|
|
%pointer_cast(void *, unsigned long, void_to_unsigned_long);
|
2007-01-19 04:28:44 -05:00
|
|
|
%pointer_cast(void *, alpm_list_t *, void_to_pmlist);
|
2006-11-20 04:10:23 -05:00
|
|
|
%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);
|
2006-10-15 15:38:02 -04:00
|
|
|
|
|
|
|
%include "alpm.h"
|