summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-introspect.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-21 18:08:39 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-21 18:08:39 +0100
commit7fb411f035e68b5f3f5e2893157739c9da9917b0 (patch)
treefc342dcdf2623ec3421ea253bd5ce0a8b571f7a4 /src/libsystemd-bus/bus-introspect.h
parentb2bb3469fd01cec57f1f1726edb5b851ff8427ad (diff)
bus: when introspecting, turn unprivileged flag into inverse annoation of "privileged"
Internally, it makes sense to have a default of "privileged" for methods, and a flag to open it up. However, externally in the bus introspection turn this around since negative options actually suck.
Diffstat (limited to 'src/libsystemd-bus/bus-introspect.h')
-rw-r--r--src/libsystemd-bus/bus-introspect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-introspect.h b/src/libsystemd-bus/bus-introspect.h
index 0be12cffb9..98312d123b 100644
--- a/src/libsystemd-bus/bus-introspect.h
+++ b/src/libsystemd-bus/bus-introspect.h
@@ -31,9 +31,10 @@ struct introspect {
FILE *f;
char *introspection;
size_t size;
+ bool trusted;
};
-int introspect_begin(struct introspect *i);
+int introspect_begin(struct introspect *i, bool trusted);
int introspect_write_default_interfaces(struct introspect *i, bool object_manager);
int introspect_write_child_nodes(struct introspect *i, Set *s, const char *prefix);
int introspect_write_interface(struct introspect *i, const sd_bus_vtable *v);