dfuzzer
|
#include <gio/gio.h>
#include <stdio.h>
#include <stdlib.h>
#include "introspection.h"
#include "dfuzzer.h"
Functions | |
int | df_init_introspection (const GDBusProxy *dproxy, const char *name, const char *interface) |
GDBusMethodInfo * | df_get_method (void) |
void | df_next_method (void) |
GDBusArgInfo * | df_get_method_arg (void) |
void | df_next_method_arg (void) |
int | df_method_has_out_args (void) |
void | df_unref_introspection (void) |
Variables | |
static GDBusNodeInfo * | df_introspection_data |
static GDBusInterfaceInfo * | df_interface_data |
static GDBusMethodInfo ** | df_methods |
static GDBusArgInfo ** | df_in_args |
static GDBusArgInfo ** | df_out_args |
GDBusMethodInfo* df_get_method | ( | void | ) |
GDBusArgInfo* df_get_method_arg | ( | void | ) |
int df_init_introspection | ( | const GDBusProxy * | dproxy, |
const char * | name, | ||
const char * | interface | ||
) |
Gets introspection of object pointed by dproxy (in XML format), then parses XML data and fills GDBusNodeInfo representing the data. At the end looks up information about an interface and initializes module global pointers on first method and its first argument.
dproxy | Pointer on D-Bus interface proxy |
name | D-Bus name |
interface | D-Bus interface |
int df_method_has_out_args | ( | void | ) |
void df_next_method | ( | void | ) |
Function is used as "iterator" for interface methods.
void df_next_method_arg | ( | void | ) |
Function is used as "iterator" for interface current (df_get_method()) method arguments.
void df_unref_introspection | ( | void | ) |
Call when done with this module functions (only after df_init_introspection() function call). It frees memory used by df_introspection_data (GDBusNodeInfo *) which is used to look up information about the interface (methods, their arguments, etc.).
|
static |
Pointer on input arguments, each contains information about itself.
|
static |
Information about a D-Bus interface.
|
static |
Information about nodes in a remote object hierarchy.
|
static |
Pointer on methods, each contains information about itself.
|
static |
Pointer on output arguments