* [SEMANAGE] Swig update
@ 2005-12-24 21:09 Ivan Gyurdiev
2006-01-04 15:02 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Gyurdiev @ 2005-12-24 21:09 UTC (permalink / raw)
To: SELinux List; +Cc: Stephen Smalley, Daniel J Walsh
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
This updates the swig interfaces (adding ports and active booleans), and
reorders the headers so they make sense. I haven't checked if the port
typemap things are correct - just uncommented.
I remember last time I updated swig interfaces I wrote to the wrap file
directly, instead of the interface (didn't realize it was autogenerated)
- maybe make clean should get rid of it to avoid confusion.
[-- Attachment #2: libsemanage9.swig_update.diff --]
[-- Type: text/x-patch, Size: 2247 bytes --]
diff -Naurp --exclude-from excludes old/libsemanage/src/semanageswig.i new/libsemanage/src/semanageswig.i
--- old/libsemanage/src/semanageswig.i 2005-12-24 16:03:22.000000000 -0500
+++ new/libsemanage/src/semanageswig.i 2005-12-24 15:41:15.000000000 -0500
@@ -147,7 +147,6 @@
/* the wrapper will setup this parameter for passing... the resulting python functions
will not take the semanage_port_t *** parameter */
-/*
%typemap(in, numinputs=0) semanage_port_t ***(semanage_port_t **temp) {
$1 = &temp;
}
@@ -171,27 +170,25 @@
%typemap(in, numinputs=0) semanage_port_key_t **(semanage_port_key_t *temp) {
$1 = &temp;
}
-*/
/* pull in the headers */
-%include "../include/semanage/boolean_record.h"
%include "../include/semanage/debug.h"
-%include "../include/semanage/interfaces_policy.h"
-%include "../include/semanage/booleans_local.h"
-%include "../include/semanage/handle.h"
-%include "../include/semanage/modules.h"
-%include "../include/semanage/semanage.h"
+%include "../include/semanage/handle.h"
+%include "../include/semanage/modules.h"
+%include "../include/semanage/context_record.h"
+%include "../include/semanage/boolean_record.h"
+%include "../include/semanage/booleans_policy.h"
+%include "../include/semanage/booleans_local.h"
+%include "../include/semanage/booleans_active.h"
+%include "../include/semanage/iface_record.h"
+%include "../include/semanage/interfaces_local.h"
+%include "../include/semanage/interfaces_policy.h"
%include "../include/semanage/user_record.h"
-%include "../include/semanage/booleans_policy.h"
-%include "../include/semanage/iface_record.h"
-%include "../include/semanage/seuser_record.h"
%include "../include/semanage/users_local.h"
-%include "../include/semanage/context_record.h"
-%include "../include/semanage/interfaces_local.h"
-%include "../include/semanage/seusers.h"
%include "../include/semanage/users_policy.h"
-/*
%include "../include/semanage/port_record.h"
%include "../include/semanage/ports_local.h"
%include "../include/semanage/ports_policy.h"
-*/
+%include "../include/semanage/seuser_record.h"
+%include "../include/semanage/seusers.h"
+%include "../include/semanage/semanage.h"
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [SEMANAGE] Swig update
2005-12-24 21:09 [SEMANAGE] Swig update Ivan Gyurdiev
@ 2006-01-04 15:02 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2006-01-04 15:02 UTC (permalink / raw)
To: Ivan Gyurdiev; +Cc: Joshua Brindle, SELinux List, Daniel J Walsh
On Sat, 2005-12-24 at 16:09 -0500, Ivan Gyurdiev wrote:
> This updates the swig interfaces (adding ports and active booleans), and
> reorders the headers so they make sense. I haven't checked if the port
> typemap things are correct - just uncommented.
>
> I remember last time I updated swig interfaces I wrote to the wrap file
> directly, instead of the interface (didn't realize it was autogenerated)
> - maybe make clean should get rid of it to avoid confusion.
Despite being automatically generated, we'd prefer to avoid requiring
everyone to have swig installed to build libsemanage, plus one only
needs to regenerate them when the interfaces actually change. That is
why the generated file is included presently, and not removed by a make
clean.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-04 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-24 21:09 [SEMANAGE] Swig update Ivan Gyurdiev
2006-01-04 15:02 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.