#endif
#include "glibintl.h"
+#include "gioalias.h"
/**
* SECTION:gdbusmessage
#endif
};
-#define g_dbus_message_get_type g_dbus_message_get_gtype
G_DEFINE_TYPE (GDBusMessage, g_dbus_message, G_TYPE_OBJECT);
-#undef g_dbus_message_get_type
static void
g_dbus_message_finalize (GObject *object)
const gchar *sender;
g_return_val_if_fail (G_IS_DBUS_MESSAGE (method_call_message), NULL);
- g_return_val_if_fail (g_dbus_message_get_type (method_call_message) == G_DBUS_MESSAGE_TYPE_METHOD_CALL, NULL);
+ g_return_val_if_fail (g_dbus_message_get_message_type (method_call_message) == G_DBUS_MESSAGE_TYPE_METHOD_CALL, NULL);
g_return_val_if_fail (g_dbus_message_get_serial (method_call_message) != 0, NULL);
message = g_dbus_message_new ();
const gchar *sender;
g_return_val_if_fail (G_IS_DBUS_MESSAGE (method_call_message), NULL);
- g_return_val_if_fail (g_dbus_message_get_type (method_call_message) == G_DBUS_MESSAGE_TYPE_METHOD_CALL, NULL);
+ g_return_val_if_fail (g_dbus_message_get_message_type (method_call_message) == G_DBUS_MESSAGE_TYPE_METHOD_CALL, NULL);
g_return_val_if_fail (g_dbus_message_get_serial (method_call_message) != 0, NULL);
g_return_val_if_fail (g_dbus_is_name (error_name), NULL);
g_return_val_if_fail (error_message != NULL, NULL);
/* TODO: need GI annotations to specify that any guchar value goes for the type */
/**
- * g_dbus_message_get_type:
+ * g_dbus_message_get_message_type:
* @message: A #GDBusMessage.
*
* Gets the type of @message.
* Since: 2.26
*/
GDBusMessageType
-g_dbus_message_get_type (GDBusMessage *message)
+g_dbus_message_get_message_type (GDBusMessage *message)
{
g_return_val_if_fail (G_IS_DBUS_MESSAGE (message), G_DBUS_MESSAGE_TYPE_INVALID);
return message->priv->type;
}
/**
- * g_dbus_message_set_type:
+ * g_dbus_message_set_message_type:
* @message: A #GDBusMessage.
* @type: A 8-bit unsigned integer (typically a value from the #GDBusMessageType enumeration).
*
* Since: 2.26
*/
void
-g_dbus_message_set_type (GDBusMessage *message,
- GDBusMessageType type)
+g_dbus_message_set_message_type (GDBusMessage *message,
+ GDBusMessageType type)
{
g_return_if_fail (G_IS_DBUS_MESSAGE (message));
g_return_if_fail (type >=0 && type < 256);
return g_string_free (str, FALSE);
}
+
+#define __G_DBUS_MESSAGE_C__
+#include "gioaliasdef.c"
g_resolver_error_get_type G_GNUC_CONST
g_zlib_compressor_format_get_type
g_settings_bind_flags_get_type
+g_dbus_error_get_type G_GNUC_CONST
+g_bus_type_get_type G_GNUC_CONST
+g_bus_name_owner_flags_get_type G_GNUC_CONST
+g_bus_name_watcher_flags_get_type G_GNUC_CONST
+g_dbus_proxy_flags_get_type G_GNUC_CONST
+g_dbus_connection_flags_get_type G_GNUC_CONST
+g_dbus_capability_flags_get_type G_GNUC_CONST
+g_dbus_invoke_method_flags_get_type G_GNUC_CONST
+g_dbus_message_type_get_type G_GNUC_CONST
+g_dbus_message_flags_get_type G_GNUC_CONST
+g_dbus_message_header_field_get_type G_GNUC_CONST
+g_dbus_property_info_flags_get_type G_GNUC_CONST
+g_dbus_subtree_flags_get_type G_GNUC_CONST
+g_dbus_server_flags_get_type G_GNUC_CONST
#endif
#endif
g_unix_connection_get_type G_GNUC_CONST
g_unix_connection_receive_fd
g_unix_connection_send_fd
+g_unix_connection_receive_credentials
+g_unix_connection_send_credentials
#endif
#endif
#endif
g_settings_set_boolean
#endif
#endif
+
+#if IN_HEADER(__G_CREDENTIALS_H__)
+#if IN_FILE(__G_CREDENTIALS_C__)
+g_credentials_get_type G_GNUC_CONST
+g_credentials_new
+g_credentials_new_for_process
+g_credentials_new_for_string
+g_credentials_to_string
+g_credentials_get_unix_group
+g_credentials_get_unix_process
+g_credentials_get_unix_user
+g_credentials_get_windows_user
+g_credentials_has_unix_group
+g_credentials_has_unix_process
+g_credentials_has_unix_user
+g_credentials_has_windows_user
+g_credentials_set_unix_group
+g_credentials_set_unix_process
+g_credentials_set_unix_user
+g_credentials_set_windows_user
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_ADDRESS_H__)
+#if IN_FILE(__G_DBUS_ADDRESS_C__)
+g_dbus_is_address
+g_dbus_is_supported_address
+g_dbus_address_get_for_bus_sync
+g_dbus_address_get_stream
+g_dbus_address_get_stream_finish
+g_dbus_address_get_stream_sync
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_AUTH_OBSERVER_H__)
+#if IN_FILE(__G_DBUS_AUTH_OBSERVER_C__)
+g_dbus_auth_observer_get_type G_GNUC_CONST
+g_dbus_auth_observer_new
+g_dbus_auth_observer_deny_authenticated_peer
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_CONNECTION_H__)
+#if IN_FILE(__G_DBUS_CONNECTION_C__)
+g_dbus_connection_get_type G_GNUC_CONST
+g_bus_get
+g_bus_get_finish
+g_bus_get_sync
+g_dbus_connection_new
+g_dbus_connection_new_finish
+g_dbus_connection_new_for_address
+g_dbus_connection_new_for_address_finish
+g_dbus_connection_new_for_address_sync
+g_dbus_connection_new_sync
+g_dbus_connection_get_capabilities
+g_dbus_connection_get_exit_on_close
+g_dbus_connection_get_guid
+g_dbus_connection_get_peer_credentials
+g_dbus_connection_get_stream
+g_dbus_connection_get_unique_name
+g_dbus_connection_is_closed
+g_dbus_connection_set_exit_on_close
+g_dbus_connection_close
+g_dbus_connection_emit_signal
+g_dbus_connection_invoke_method
+g_dbus_connection_invoke_method_finish
+g_dbus_connection_invoke_method_sync
+g_dbus_connection_signal_subscribe
+g_dbus_connection_signal_unsubscribe
+g_dbus_connection_add_filter
+g_dbus_connection_remove_filter
+g_dbus_connection_send_message
+g_dbus_connection_send_message_with_reply
+g_dbus_connection_send_message_with_reply_finish
+g_dbus_connection_send_message_with_reply_sync
+g_dbus_connection_register_object
+g_dbus_connection_unregister_object
+g_dbus_connection_register_subtree
+g_dbus_connection_unregister_subtree
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_ERROR_H__)
+#if IN_FILE(__G_DBUS_ERROR_C__)
+g_dbus_error_quark
+g_dbus_error_new_for_dbus_error
+g_dbus_error_is_remote_error
+g_dbus_error_get_remote_error
+g_dbus_error_strip_remote_error
+g_dbus_error_encode_gerror
+g_dbus_error_register_error
+g_dbus_error_register_error_domain
+g_dbus_error_set_dbus_error
+g_dbus_error_set_dbus_error_valist
+g_dbus_error_unregister_error
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_INTROSPECTION_H__)
+#if IN_FILE(__G_DBUS_INTROSPECTION_C__)
+g_dbus_annotation_info_get_type G_GNUC_CONST
+g_dbus_arg_info_get_type G_GNUC_CONST
+g_dbus_property_info_get_type G_GNUC_CONST
+g_dbus_interface_info_get_type G_GNUC_CONST
+g_dbus_method_info_get_type G_GNUC_CONST
+g_dbus_signal_info_get_type G_GNUC_CONST
+g_dbus_node_info_get_type G_GNUC_CONST
+g_dbus_annotation_info_lookup
+g_dbus_annotation_info_ref
+g_dbus_annotation_info_unref
+g_dbus_interface_info_generate_xml
+g_dbus_interface_info_lookup_method
+g_dbus_interface_info_lookup_property
+g_dbus_interface_info_lookup_signal
+g_dbus_node_info_new_for_xml
+g_dbus_node_info_generate_xml
+g_dbus_node_info_lookup_interface
+g_dbus_arg_info_ref
+g_dbus_arg_info_unref
+g_dbus_property_info_ref
+g_dbus_property_info_unref
+g_dbus_signal_info_ref
+g_dbus_signal_info_unref
+g_dbus_method_info_ref
+g_dbus_method_info_unref
+g_dbus_interface_info_ref
+g_dbus_interface_info_unref
+g_dbus_node_info_ref
+g_dbus_node_info_unref
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_MESSAGE_H__)
+#if IN_FILE(__G_DBUS_MESSAGE_C__)
+g_dbus_message_get_type G_GNUC_CONST
+g_dbus_message_new
+g_dbus_message_new_from_blob
+g_dbus_message_new_method_call
+g_dbus_message_new_method_error
+g_dbus_message_new_method_error_literal
+g_dbus_message_new_method_error_valist
+g_dbus_message_new_method_reply
+g_dbus_message_new_signal
+g_dbus_message_bytes_needed
+g_dbus_message_get_arg0
+g_dbus_message_get_body
+g_dbus_message_get_destination
+g_dbus_message_get_error_name
+g_dbus_message_get_flags
+g_dbus_message_get_header
+g_dbus_message_get_header_fields
+g_dbus_message_get_interface
+g_dbus_message_get_member
+g_dbus_message_get_num_unix_fds
+g_dbus_message_get_path
+g_dbus_message_get_reply_serial
+g_dbus_message_get_sender
+g_dbus_message_get_serial
+g_dbus_message_get_signature
+g_dbus_message_get_message_type
+g_dbus_message_get_unix_fd_list
+g_dbus_message_print
+g_dbus_message_set_body
+g_dbus_message_set_destination
+g_dbus_message_set_error_name
+g_dbus_message_set_flags
+g_dbus_message_set_header
+g_dbus_message_set_interface
+g_dbus_message_set_member
+g_dbus_message_set_num_unix_fds
+g_dbus_message_set_path
+g_dbus_message_set_reply_serial
+g_dbus_message_set_sender
+g_dbus_message_set_serial
+g_dbus_message_set_signature
+g_dbus_message_set_message_type
+g_dbus_message_set_unix_fd_list
+g_dbus_message_to_blob
+g_dbus_message_to_gerror
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_METHOD_INVOCATION_H__)
+#if IN_FILE(__G_DBUS_METHOD_INVOCATION_C__)
+g_dbus_method_invocation_get_type G_GNUC_CONST
+g_dbus_method_invocation_new
+g_dbus_method_invocation_get_connection
+g_dbus_method_invocation_get_interface_name
+g_dbus_method_invocation_get_message
+g_dbus_method_invocation_get_method_info
+g_dbus_method_invocation_get_method_name
+g_dbus_method_invocation_get_object_path
+g_dbus_method_invocation_get_parameters
+g_dbus_method_invocation_get_sender
+g_dbus_method_invocation_get_user_data
+g_dbus_method_invocation_return_dbus_error
+g_dbus_method_invocation_return_error
+g_dbus_method_invocation_return_error_literal
+g_dbus_method_invocation_return_error_valist
+g_dbus_method_invocation_return_gerror
+g_dbus_method_invocation_return_value
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_NAME_OWNING_H__)
+#if IN_FILE(__G_DBUS_NAME_OWNING_C__)
+g_bus_own_name
+g_bus_own_name_on_connection
+g_bus_unown_name
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_NAME_WATCHING_H__)
+#if IN_FILE(__G_DBUS_NAME_WATCHING_C__)
+g_bus_watch_name
+g_bus_unwatch_name
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_PROXY_H__)
+#if IN_FILE(__G_DBUS_PROXY_C__)
+g_dbus_proxy_get_type G_GNUC_CONST
+g_dbus_proxy_new
+g_dbus_proxy_new_finish
+g_dbus_proxy_new_sync
+g_dbus_proxy_get_cached_property
+g_dbus_proxy_get_cached_property_names
+g_dbus_proxy_get_connection
+g_dbus_proxy_get_default_timeout
+g_dbus_proxy_get_flags
+g_dbus_proxy_get_interface_info
+g_dbus_proxy_get_interface_name
+g_dbus_proxy_get_object_path
+g_dbus_proxy_get_unique_bus_name
+g_dbus_proxy_set_default_timeout
+g_dbus_proxy_set_interface_info
+g_dbus_proxy_invoke_method
+g_dbus_proxy_invoke_method_finish
+g_dbus_proxy_invoke_method_sync
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_PROXY_WATCHING_H__)
+#if IN_FILE(__G_DBUS_PROXY_WATCHING_C__)
+g_bus_watch_proxy
+g_bus_unwatch_proxy
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_SERVER_H__)
+#if IN_FILE(__G_DBUS_SERVER_C__)
+g_dbus_server_get_type G_GNUC_CONST
+g_dbus_server_new_sync
+g_dbus_server_is_active
+g_dbus_server_start
+g_dbus_server_stop
+g_dbus_server_get_client_address
+g_dbus_server_get_flags
+g_dbus_server_get_guid
+#endif
+#endif
+
+#if IN_HEADER(__G_DBUS_UTILS_H__)
+#if IN_FILE(__G_DBUS_UTILS_C__)
+g_dbus_generate_guid
+g_dbus_is_activated
+g_dbus_is_guid
+g_dbus_is_interface_name
+g_dbus_is_member_name
+g_dbus_is_name
+g_dbus_is_unique_name
+#endif
+#endif
+
+#if IN_HEADER(__G_UNIX_CREDENTIALS_MESSAGE_H__)
+#if IN_FILE(__G_UNIX_CREDENTIALS_MESSAGE_C__)
+g_unix_credentials_message_get_type G_GNUC_CONST
+g_unix_credentials_message_new
+g_unix_credentials_message_new_with_credentials
+g_unix_credentials_message_get_credentials
+g_unix_credentials_message_is_supported
+#endif
+#endif