What python binding?
Luigi Paioro
luigi at lambrate.inaf.it
Thu Sep 28 04:49:45 PDT 2006
Hi!
I'm quite confused about python bindings. I've just installed dbus-0.93
and dbus-glib-0.71 bindings (with some difficulties, but now it runs,
thanks to this mailing list). Now I was trying to install
dbus-python-0.71 but the command "python setup.py build" fails (I attach
my output). I've read that there is a new candidate dbus-python-c-0.80
which is (I think) different (python "C" bindings) from the previous...
Can you explain me what are the differences and how can I do to install
at least one of them (0.71 doesn't work)? What python binding I've to
use now???
Thanks
Luigi
-------------- next part --------------
matched dbus_h_wrapper.h
output # 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
# 1 "dbus/dbus_h_wrapper.h" 1
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 1
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/lib/dbus-1.0/include/dbus/dbus-arch-deps.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/lib/dbus-1.0/include/dbus/dbus-arch-deps.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/lib/dbus-1.0/include/dbus/dbus-arch-deps.h" 2
typedef long long dbus_int64_t;
typedef unsigned long long dbus_uint64_t;
# 48 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/lib/dbus-1.0/include/dbus/dbus-arch-deps.h"
typedef int dbus_int32_t;
typedef unsigned int dbus_uint32_t;
typedef short dbus_int16_t;
typedef unsigned short dbus_uint16_t;
# 34 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-address.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-address.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h"
# 1 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stddef.h" 1 3 4
# 152 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stddef.h" 3 4
typedef int ptrdiff_t;
# 214 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stddef.h" 3 4
typedef unsigned int size_t;
# 326 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stddef.h" 3 4
typedef long int wchar_t;
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/lib/dbus-1.0/include/dbus/dbus-arch-deps.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 2
typedef dbus_uint32_t dbus_unichar_t;
typedef dbus_uint32_t dbus_bool_t;
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-address.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 2
typedef struct DBusError DBusError;
struct DBusError
{
const char *name;
const char *message;
unsigned int dummy1 : 1;
unsigned int dummy2 : 1;
unsigned int dummy3 : 1;
unsigned int dummy4 : 1;
unsigned int dummy5 : 1;
void *padding1;
};
void dbus_error_init (DBusError *error);
void dbus_error_free (DBusError *error);
void dbus_set_error (DBusError *error,
const char *name,
const char *message,
...);
void dbus_set_error_const (DBusError *error,
const char *name,
const char *message);
void dbus_move_error (DBusError *src,
DBusError *dest);
dbus_bool_t dbus_error_has_name (const DBusError *error,
const char *name);
dbus_bool_t dbus_error_is_set (const DBusError *error);
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-address.h" 2
typedef struct DBusAddressEntry DBusAddressEntry;
dbus_bool_t dbus_parse_address (const char *address,
DBusAddressEntry ***entry,
int *array_len,
DBusError *error);
const char *dbus_address_entry_get_value (DBusAddressEntry *entry,
const char *key);
const char *dbus_address_entry_get_method (DBusAddressEntry *entry);
void dbus_address_entries_free (DBusAddressEntry **entries);
char* dbus_address_escape_value (const char *value);
char* dbus_address_unescape_value (const char *value,
DBusError *error);
# 35 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-bus.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-bus.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-memory.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-memory.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-memory.h" 2
# 1 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stddef.h" 1 3 4
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-memory.h" 2
void* dbus_malloc (size_t bytes);
void* dbus_malloc0 (size_t bytes);
void* dbus_realloc (void *memory,
size_t bytes);
void dbus_free (void *memory);
void dbus_free_string_array (char **str_array);
typedef void (* DBusFreeFunction) (void *memory);
void dbus_shutdown (void);
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/lib/dbus-1.0/include/dbus/dbus-arch-deps.h" 1
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-memory.h" 1
# 34 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 1
# 35 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 2
# 1 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stdarg.h" 1 3 4
# 43 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
# 105 "/usr/lib/gcc/i586-suse-linux/4.0.2/include/stdarg.h" 3 4
typedef __gnuc_va_list va_list;
# 36 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 2
typedef struct DBusMessage DBusMessage;
typedef struct DBusMessageIter DBusMessageIter;
struct DBusMessageIter
{
void *dummy1;
void *dummy2;
dbus_uint32_t dummy3;
int dummy4;
int dummy5;
int dummy6;
int dummy7;
int dummy8;
int dummy9;
int dummy10;
int dummy11;
int pad1;
int pad2;
void *pad3;
};
DBusMessage* dbus_message_new (int message_type);
DBusMessage* dbus_message_new_method_call (const char *bus_name,
const char *path,
const char *interface,
const char *method);
DBusMessage* dbus_message_new_method_return (DBusMessage *method_call);
DBusMessage* dbus_message_new_signal (const char *path,
const char *interface,
const char *name);
DBusMessage* dbus_message_new_error (DBusMessage *reply_to,
const char *error_name,
const char *error_message);
DBusMessage* dbus_message_new_error_printf (DBusMessage *reply_to,
const char *error_name,
const char *error_format,
...);
DBusMessage* dbus_message_copy (const DBusMessage *message);
DBusMessage* dbus_message_ref (DBusMessage *message);
void dbus_message_unref (DBusMessage *message);
int dbus_message_get_type (DBusMessage *message);
dbus_bool_t dbus_message_set_path (DBusMessage *message,
const char *object_path);
const char* dbus_message_get_path (DBusMessage *message);
dbus_bool_t dbus_message_has_path (DBusMessage *message,
const char *object_path);
dbus_bool_t dbus_message_set_interface (DBusMessage *message,
const char *interface);
const char* dbus_message_get_interface (DBusMessage *message);
dbus_bool_t dbus_message_has_interface (DBusMessage *message,
const char *interface);
dbus_bool_t dbus_message_set_member (DBusMessage *message,
const char *member);
const char* dbus_message_get_member (DBusMessage *message);
dbus_bool_t dbus_message_has_member (DBusMessage *message,
const char *member);
dbus_bool_t dbus_message_set_error_name (DBusMessage *message,
const char *name);
const char* dbus_message_get_error_name (DBusMessage *message);
dbus_bool_t dbus_message_set_destination (DBusMessage *message,
const char *destination);
const char* dbus_message_get_destination (DBusMessage *message);
dbus_bool_t dbus_message_set_sender (DBusMessage *message,
const char *sender);
const char* dbus_message_get_sender (DBusMessage *message);
const char* dbus_message_get_signature (DBusMessage *message);
void dbus_message_set_no_reply (DBusMessage *message,
dbus_bool_t no_reply);
dbus_bool_t dbus_message_get_no_reply (DBusMessage *message);
dbus_bool_t dbus_message_is_method_call (DBusMessage *message,
const char *interface,
const char *method);
dbus_bool_t dbus_message_is_signal (DBusMessage *message,
const char *interface,
const char *signal_name);
dbus_bool_t dbus_message_is_error (DBusMessage *message,
const char *error_name);
dbus_bool_t dbus_message_has_destination (DBusMessage *message,
const char *bus_name);
dbus_bool_t dbus_message_has_sender (DBusMessage *message,
const char *unique_bus_name);
dbus_bool_t dbus_message_has_signature (DBusMessage *message,
const char *signature);
dbus_uint32_t dbus_message_get_serial (DBusMessage *message);
dbus_bool_t dbus_message_set_reply_serial (DBusMessage *message,
dbus_uint32_t reply_serial);
dbus_uint32_t dbus_message_get_reply_serial (DBusMessage *message);
void dbus_message_set_auto_start (DBusMessage *message,
dbus_bool_t auto_start);
dbus_bool_t dbus_message_get_auto_start (DBusMessage *message);
dbus_bool_t dbus_message_get_path_decomposed (DBusMessage *message,
char ***path);
dbus_bool_t dbus_message_append_args (DBusMessage *message,
int first_arg_type,
...);
dbus_bool_t dbus_message_append_args_valist (DBusMessage *message,
int first_arg_type,
va_list var_args);
dbus_bool_t dbus_message_get_args (DBusMessage *message,
DBusError *error,
int first_arg_type,
...);
dbus_bool_t dbus_message_get_args_valist (DBusMessage *message,
DBusError *error,
int first_arg_type,
va_list var_args);
dbus_bool_t dbus_message_iter_init (DBusMessage *message,
DBusMessageIter *iter);
dbus_bool_t dbus_message_iter_has_next (DBusMessageIter *iter);
dbus_bool_t dbus_message_iter_next (DBusMessageIter *iter);
char* dbus_message_iter_get_signature (DBusMessageIter *iter);
int dbus_message_iter_get_arg_type (DBusMessageIter *iter);
int dbus_message_iter_get_element_type (DBusMessageIter *iter);
void dbus_message_iter_recurse (DBusMessageIter *iter,
DBusMessageIter *sub);
void dbus_message_iter_get_basic (DBusMessageIter *iter,
void *value);
int dbus_message_iter_get_array_len (DBusMessageIter *iter);
void dbus_message_iter_get_fixed_array (DBusMessageIter *iter,
void *value,
int *n_elements);
void dbus_message_iter_init_append (DBusMessage *message,
DBusMessageIter *iter);
dbus_bool_t dbus_message_iter_append_basic (DBusMessageIter *iter,
int type,
const void *value);
dbus_bool_t dbus_message_iter_append_fixed_array (DBusMessageIter *iter,
int element_type,
const void *value,
int n_elements);
dbus_bool_t dbus_message_iter_open_container (DBusMessageIter *iter,
int type,
const char *contained_signature,
DBusMessageIter *sub);
dbus_bool_t dbus_message_iter_close_container (DBusMessageIter *iter,
DBusMessageIter *sub);
dbus_bool_t dbus_set_error_from_message (DBusError *error,
DBusMessage *message);
dbus_bool_t dbus_message_allocate_data_slot (dbus_int32_t *slot_p);
void dbus_message_free_data_slot (dbus_int32_t *slot_p);
dbus_bool_t dbus_message_set_data (DBusMessage *message,
dbus_int32_t slot,
void *data,
DBusFreeFunction free_data_func);
void* dbus_message_get_data (DBusMessage *message,
dbus_int32_t slot);
int dbus_message_type_from_string (const char *type_str);
const char * dbus_message_type_to_string (int type);
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-shared.h" 1
# 47 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-shared.h"
typedef enum
{
DBUS_BUS_SESSION,
DBUS_BUS_SYSTEM,
DBUS_BUS_STARTER
} DBusBusType;
typedef enum
{
DBUS_HANDLER_RESULT_HANDLED,
DBUS_HANDLER_RESULT_NOT_YET_HANDLED,
DBUS_HANDLER_RESULT_NEED_MEMORY
} DBusHandlerResult;
# 34 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 2
typedef struct DBusWatch DBusWatch;
typedef struct DBusTimeout DBusTimeout;
typedef struct DBusPreallocatedSend DBusPreallocatedSend;
typedef struct DBusPendingCall DBusPendingCall;
typedef struct DBusConnection DBusConnection;
typedef struct DBusObjectPathVTable DBusObjectPathVTable;
typedef enum
{
DBUS_WATCH_READABLE = 1 << 0,
DBUS_WATCH_WRITABLE = 1 << 1,
DBUS_WATCH_ERROR = 1 << 2,
DBUS_WATCH_HANGUP = 1 << 3
} DBusWatchFlags;
typedef enum
{
DBUS_DISPATCH_DATA_REMAINS,
DBUS_DISPATCH_COMPLETE,
DBUS_DISPATCH_NEED_MEMORY
} DBusDispatchStatus;
typedef dbus_bool_t (* DBusAddWatchFunction) (DBusWatch *watch,
void *data);
typedef void (* DBusWatchToggledFunction) (DBusWatch *watch,
void *data);
typedef void (* DBusRemoveWatchFunction) (DBusWatch *watch,
void *data);
typedef dbus_bool_t (* DBusAddTimeoutFunction) (DBusTimeout *timeout,
void *data);
typedef void (* DBusTimeoutToggledFunction) (DBusTimeout *timeout,
void *data);
typedef void (* DBusRemoveTimeoutFunction) (DBusTimeout *timeout,
void *data);
typedef void (* DBusDispatchStatusFunction) (DBusConnection *connection,
DBusDispatchStatus new_status,
void *data);
typedef void (* DBusWakeupMainFunction) (void *data);
typedef dbus_bool_t (* DBusAllowUnixUserFunction) (DBusConnection *connection,
unsigned long uid,
void *data);
typedef void (* DBusPendingCallNotifyFunction) (DBusPendingCall *pending,
void *user_data);
typedef DBusHandlerResult (* DBusHandleMessageFunction) (DBusConnection *connection,
DBusMessage *message,
void *user_data);
DBusConnection* dbus_connection_open (const char *address,
DBusError *error);
DBusConnection* dbus_connection_open_private (const char *address,
DBusError *error);
DBusConnection* dbus_connection_ref (DBusConnection *connection);
void dbus_connection_unref (DBusConnection *connection);
void dbus_connection_close (DBusConnection *connection);
dbus_bool_t dbus_connection_get_is_connected (DBusConnection *connection);
dbus_bool_t dbus_connection_get_is_authenticated (DBusConnection *connection);
void dbus_connection_set_exit_on_disconnect (DBusConnection *connection,
dbus_bool_t exit_on_disconnect);
void dbus_connection_flush (DBusConnection *connection);
dbus_bool_t dbus_connection_read_write_dispatch (DBusConnection *connection,
int timeout_milliseconds);
dbus_bool_t dbus_connection_read_write (DBusConnection *connection,
int timeout_milliseconds);
DBusMessage* dbus_connection_borrow_message (DBusConnection *connection);
void dbus_connection_return_message (DBusConnection *connection,
DBusMessage *message);
void dbus_connection_steal_borrowed_message (DBusConnection *connection,
DBusMessage *message);
DBusMessage* dbus_connection_pop_message (DBusConnection *connection);
DBusDispatchStatus dbus_connection_get_dispatch_status (DBusConnection *connection);
DBusDispatchStatus dbus_connection_dispatch (DBusConnection *connection);
dbus_bool_t dbus_connection_has_messages_to_send (DBusConnection *connection);
dbus_bool_t dbus_connection_send (DBusConnection *connection,
DBusMessage *message,
dbus_uint32_t *client_serial);
dbus_bool_t dbus_connection_send_with_reply (DBusConnection *connection,
DBusMessage *message,
DBusPendingCall **pending_return,
int timeout_milliseconds);
DBusMessage * dbus_connection_send_with_reply_and_block (DBusConnection *connection,
DBusMessage *message,
int timeout_milliseconds,
DBusError *error);
dbus_bool_t dbus_connection_set_watch_functions (DBusConnection *connection,
DBusAddWatchFunction add_function,
DBusRemoveWatchFunction remove_function,
DBusWatchToggledFunction toggled_function,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_connection_set_timeout_functions (DBusConnection *connection,
DBusAddTimeoutFunction add_function,
DBusRemoveTimeoutFunction remove_function,
DBusTimeoutToggledFunction toggled_function,
void *data,
DBusFreeFunction free_data_function);
void dbus_connection_set_wakeup_main_function (DBusConnection *connection,
DBusWakeupMainFunction wakeup_main_function,
void *data,
DBusFreeFunction free_data_function);
void dbus_connection_set_dispatch_status_function (DBusConnection *connection,
DBusDispatchStatusFunction function,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_connection_get_unix_user (DBusConnection *connection,
unsigned long *uid);
dbus_bool_t dbus_connection_get_unix_process_id (DBusConnection *connection,
unsigned long *pid);
void dbus_connection_set_unix_user_function (DBusConnection *connection,
DBusAllowUnixUserFunction function,
void *data,
DBusFreeFunction free_data_function);
int dbus_watch_get_fd (DBusWatch *watch);
unsigned int dbus_watch_get_flags (DBusWatch *watch);
void* dbus_watch_get_data (DBusWatch *watch);
void dbus_watch_set_data (DBusWatch *watch,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_watch_handle (DBusWatch *watch,
unsigned int flags);
dbus_bool_t dbus_watch_get_enabled (DBusWatch *watch);
int dbus_timeout_get_interval (DBusTimeout *timeout);
void* dbus_timeout_get_data (DBusTimeout *timeout);
void dbus_timeout_set_data (DBusTimeout *timeout,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_timeout_handle (DBusTimeout *timeout);
dbus_bool_t dbus_timeout_get_enabled (DBusTimeout *timeout);
dbus_bool_t dbus_connection_add_filter (DBusConnection *connection,
DBusHandleMessageFunction function,
void *user_data,
DBusFreeFunction free_data_function);
void dbus_connection_remove_filter (DBusConnection *connection,
DBusHandleMessageFunction function,
void *user_data);
dbus_bool_t dbus_connection_allocate_data_slot (dbus_int32_t *slot_p);
void dbus_connection_free_data_slot (dbus_int32_t *slot_p);
dbus_bool_t dbus_connection_set_data (DBusConnection *connection,
dbus_int32_t slot,
void *data,
DBusFreeFunction free_data_func);
void* dbus_connection_get_data (DBusConnection *connection,
dbus_int32_t slot);
void dbus_connection_set_change_sigpipe (dbus_bool_t will_modify_sigpipe);
void dbus_connection_set_max_message_size (DBusConnection *connection,
long size);
long dbus_connection_get_max_message_size (DBusConnection *connection);
void dbus_connection_set_max_received_size (DBusConnection *connection,
long size);
long dbus_connection_get_max_received_size (DBusConnection *connection);
long dbus_connection_get_outgoing_size (DBusConnection *connection);
DBusPreallocatedSend* dbus_connection_preallocate_send (DBusConnection *connection);
void dbus_connection_free_preallocated_send (DBusConnection *connection,
DBusPreallocatedSend *preallocated);
void dbus_connection_send_preallocated (DBusConnection *connection,
DBusPreallocatedSend *preallocated,
DBusMessage *message,
dbus_uint32_t *client_serial);
typedef void (* DBusObjectPathUnregisterFunction) (DBusConnection *connection,
void *user_data);
typedef DBusHandlerResult (* DBusObjectPathMessageFunction) (DBusConnection *connection,
DBusMessage *message,
void *user_data);
struct DBusObjectPathVTable
{
DBusObjectPathUnregisterFunction unregister_function;
DBusObjectPathMessageFunction message_function;
void (* dbus_internal_pad1) (void *);
void (* dbus_internal_pad2) (void *);
void (* dbus_internal_pad3) (void *);
void (* dbus_internal_pad4) (void *);
};
dbus_bool_t dbus_connection_register_object_path (DBusConnection *connection,
const char *path,
const DBusObjectPathVTable *vtable,
void *user_data);
dbus_bool_t dbus_connection_register_fallback (DBusConnection *connection,
const char *path,
const DBusObjectPathVTable *vtable,
void *user_data);
dbus_bool_t dbus_connection_unregister_object_path (DBusConnection *connection,
const char *path);
dbus_bool_t dbus_connection_get_object_path_data (DBusConnection *connection,
const char *path,
void **data_p);
dbus_bool_t dbus_connection_list_registered (DBusConnection *connection,
const char *parent_path,
char ***child_entries);
dbus_bool_t dbus_connection_get_unix_fd (DBusConnection *connection,
int *fd);
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-bus.h" 2
DBusConnection *dbus_bus_get (DBusBusType type,
DBusError *error);
DBusConnection *dbus_bus_get_private (DBusBusType type,
DBusError *error);
dbus_bool_t dbus_bus_register (DBusConnection *connection,
DBusError *error);
dbus_bool_t dbus_bus_set_unique_name (DBusConnection *connection,
const char *unique_name);
const char* dbus_bus_get_unique_name (DBusConnection *connection);
unsigned long dbus_bus_get_unix_user (DBusConnection *connection,
const char *name,
DBusError *error);
int dbus_bus_request_name (DBusConnection *connection,
const char *name,
unsigned int flags,
DBusError *error);
int dbus_bus_release_name (DBusConnection *connection,
const char *name,
DBusError *error);
dbus_bool_t dbus_bus_name_has_owner (DBusConnection *connection,
const char *name,
DBusError *error);
dbus_bool_t dbus_bus_start_service_by_name (DBusConnection *connection,
const char *name,
dbus_uint32_t flags,
dbus_uint32_t *reply,
DBusError *error);
void dbus_bus_add_match (DBusConnection *connection,
const char *rule,
DBusError *error);
void dbus_bus_remove_match (DBusConnection *connection,
const char *rule,
DBusError *error);
void _dbus_bus_check_connection_and_unref_unlocked (DBusConnection *connection);
# 36 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 1
# 37 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 1
# 38 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 39 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 1
# 40 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-pending-call.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-pending-call.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-pending-call.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-pending-call.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 1
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-pending-call.h" 2
DBusPendingCall* dbus_pending_call_ref (DBusPendingCall *pending);
void dbus_pending_call_unref (DBusPendingCall *pending);
dbus_bool_t dbus_pending_call_set_notify (DBusPendingCall *pending,
DBusPendingCallNotifyFunction function,
void *user_data,
DBusFreeFunction free_user_data);
void dbus_pending_call_cancel (DBusPendingCall *pending);
dbus_bool_t dbus_pending_call_get_completed (DBusPendingCall *pending);
DBusMessage* dbus_pending_call_steal_reply (DBusPendingCall *pending);
void dbus_pending_call_block (DBusPendingCall *pending);
dbus_bool_t dbus_pending_call_allocate_data_slot (dbus_int32_t *slot_p);
void dbus_pending_call_free_data_slot (dbus_int32_t *slot_p);
dbus_bool_t dbus_pending_call_set_data (DBusPendingCall *pending,
dbus_int32_t slot,
void *data,
DBusFreeFunction free_data_func);
void* dbus_pending_call_get_data (DBusPendingCall *pending,
dbus_int32_t slot);
# 41 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-protocol.h" 1
# 42 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-server.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-server.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-server.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-message.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-server.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-connection.h" 1
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-server.h" 2
typedef struct DBusServer DBusServer;
typedef void (* DBusNewConnectionFunction) (DBusServer *server,
DBusConnection *new_connection,
void *data);
DBusServer* dbus_server_listen (const char *address,
DBusError *error);
DBusServer* dbus_server_ref (DBusServer *server);
void dbus_server_unref (DBusServer *server);
void dbus_server_disconnect (DBusServer *server);
dbus_bool_t dbus_server_get_is_connected (DBusServer *server);
char* dbus_server_get_address (DBusServer *server);
void dbus_server_set_new_connection_function (DBusServer *server,
DBusNewConnectionFunction function,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_server_set_watch_functions (DBusServer *server,
DBusAddWatchFunction add_function,
DBusRemoveWatchFunction remove_function,
DBusWatchToggledFunction toggled_function,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_server_set_timeout_functions (DBusServer *server,
DBusAddTimeoutFunction add_function,
DBusRemoveTimeoutFunction remove_function,
DBusTimeoutToggledFunction toggled_function,
void *data,
DBusFreeFunction free_data_function);
dbus_bool_t dbus_server_set_auth_mechanisms (DBusServer *server,
const char **mechanisms);
dbus_bool_t dbus_server_allocate_data_slot (dbus_int32_t *slot_p);
void dbus_server_free_data_slot (dbus_int32_t *slot_p);
dbus_bool_t dbus_server_set_data (DBusServer *server,
int slot,
void *data,
DBusFreeFunction free_data_func);
void* dbus_server_get_data (DBusServer *server,
int slot);
# 43 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-signature.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-signature.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-signature.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-signature.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-errors.h" 1
# 33 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-signature.h" 2
typedef struct
{
void *dummy1;
void *dummy2;
dbus_uint32_t dummy8;
int dummy12;
int dummy17;
} DBusSignatureIter;
void dbus_signature_iter_init (DBusSignatureIter *iter,
const char *signature);
int dbus_signature_iter_get_current_type (const DBusSignatureIter *iter);
char * dbus_signature_iter_get_signature (const DBusSignatureIter *iter);
int dbus_signature_iter_get_element_type (const DBusSignatureIter *iter);
dbus_bool_t dbus_signature_iter_next (DBusSignatureIter *iter);
void dbus_signature_iter_recurse (const DBusSignatureIter *iter,
DBusSignatureIter *subiter);
dbus_bool_t dbus_signature_validate (const char *signature,
DBusError *error);
dbus_bool_t dbus_signature_validate_single (const char *signature,
DBusError *error);
dbus_bool_t dbus_type_is_basic (int typecode);
dbus_bool_t dbus_type_is_container (int typecode);
dbus_bool_t dbus_type_is_fixed (int typecode);
# 45 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-threads.h" 1
# 30 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-threads.h"
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-macros.h" 1
# 31 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-threads.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 32 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-threads.h" 2
typedef struct DBusMutex DBusMutex;
typedef struct DBusCondVar DBusCondVar;
typedef DBusMutex* (* DBusMutexNewFunction) (void);
typedef void (* DBusMutexFreeFunction) (DBusMutex *mutex);
typedef dbus_bool_t (* DBusMutexLockFunction) (DBusMutex *mutex);
typedef dbus_bool_t (* DBusMutexUnlockFunction) (DBusMutex *mutex);
typedef DBusMutex* (* DBusRecursiveMutexNewFunction) (void);
typedef void (* DBusRecursiveMutexFreeFunction) (DBusMutex *mutex);
typedef void (* DBusRecursiveMutexLockFunction) (DBusMutex *mutex);
typedef void (* DBusRecursiveMutexUnlockFunction) (DBusMutex *mutex);
typedef DBusCondVar* (* DBusCondVarNewFunction) (void);
typedef void (* DBusCondVarFreeFunction) (DBusCondVar *cond);
typedef void (* DBusCondVarWaitFunction) (DBusCondVar *cond,
DBusMutex *mutex);
typedef dbus_bool_t (* DBusCondVarWaitTimeoutFunction) (DBusCondVar *cond,
DBusMutex *mutex,
int timeout_milliseconds);
typedef void (* DBusCondVarWakeOneFunction) (DBusCondVar *cond);
typedef void (* DBusCondVarWakeAllFunction) (DBusCondVar *cond);
typedef enum
{
DBUS_THREAD_FUNCTIONS_MUTEX_NEW_MASK = 1 << 0,
DBUS_THREAD_FUNCTIONS_MUTEX_FREE_MASK = 1 << 1,
DBUS_THREAD_FUNCTIONS_MUTEX_LOCK_MASK = 1 << 2,
DBUS_THREAD_FUNCTIONS_MUTEX_UNLOCK_MASK = 1 << 3,
DBUS_THREAD_FUNCTIONS_CONDVAR_NEW_MASK = 1 << 4,
DBUS_THREAD_FUNCTIONS_CONDVAR_FREE_MASK = 1 << 5,
DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_MASK = 1 << 6,
DBUS_THREAD_FUNCTIONS_CONDVAR_WAIT_TIMEOUT_MASK = 1 << 7,
DBUS_THREAD_FUNCTIONS_CONDVAR_WAKE_ONE_MASK = 1 << 8,
DBUS_THREAD_FUNCTIONS_CONDVAR_WAKE_ALL_MASK = 1 << 9,
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_NEW_MASK = 1 << 10,
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_FREE_MASK = 1 << 11,
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_LOCK_MASK = 1 << 12,
DBUS_THREAD_FUNCTIONS_RECURSIVE_MUTEX_UNLOCK_MASK = 1 << 13,
DBUS_THREAD_FUNCTIONS_ALL_MASK = (1 << 13) - 1
} DBusThreadFunctionsMask;
typedef struct
{
unsigned int mask;
DBusMutexNewFunction mutex_new;
DBusMutexFreeFunction mutex_free;
DBusMutexLockFunction mutex_lock;
DBusMutexUnlockFunction mutex_unlock;
DBusCondVarNewFunction condvar_new;
DBusCondVarFreeFunction condvar_free;
DBusCondVarWaitFunction condvar_wait;
DBusCondVarWaitTimeoutFunction condvar_wait_timeout;
DBusCondVarWakeOneFunction condvar_wake_one;
DBusCondVarWakeAllFunction condvar_wake_all;
DBusRecursiveMutexNewFunction recursive_mutex_new;
DBusRecursiveMutexFreeFunction recursive_mutex_free;
DBusRecursiveMutexLockFunction recursive_mutex_lock;
DBusRecursiveMutexUnlockFunction recursive_mutex_unlock;
void (* padding1) (void);
void (* padding2) (void);
void (* padding3) (void);
void (* padding4) (void);
} DBusThreadFunctions;
dbus_bool_t dbus_threads_init (const DBusThreadFunctions *functions);
dbus_bool_t dbus_threads_init_default (void);
# 46 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 1 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus-types.h" 1
# 47 "/antigone/luigi/work/software/dbus/dbus-0.93/installation/include/dbus-1.0/dbus/dbus.h" 2
# 3 "dbus/dbus_h_wrapper.h" 2
# 2 "<stdin>" 2
running build
running build_py
running build_ext
building 'dbus/dbus_bindings' extension
Traceback (most recent call last):
File "setup.py", line 151, in ?
cmdclass={'build_ext': build_ext, 'clean': full_clean, 'check': dbus_python_check}
File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/distutils/command/build.py", line 112, in run
self.run_command(cmd_name)
File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/distutils/command/build_ext.py", line 279, in run
self.build_extensions()
File "/usr/lib/python2.4/distutils/command/build_ext.py", line 405, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.4/distutils/command/build_ext.py", line 442, in build_extension
sources = self.swig_sources(sources, ext)
TypeError: swig_sources() takes exactly 2 arguments (3 given)
More information about the dbus
mailing list