|
@@ -60,23 +60,26 @@ type
|
|
DBUS_DISPATCH_NEED_MEMORY {< More memory is needed to continue. }
|
|
DBUS_DISPATCH_NEED_MEMORY {< More memory is needed to continue. }
|
|
);
|
|
);
|
|
|
|
|
|
- DBusAddWatchFunction = function (watch: PDBusWatch; data: Pointer): dbus_bool_t;
|
|
|
|
- DBusWatchToggledFunction = procedure(watch: PDBusWatch; data: Pointer);
|
|
|
|
- DBusRemoveWatchFunction = procedure(watch: PDBusWatch; data: Pointer);
|
|
|
|
- DBusAddTimeoutFunction = function(timeout: PDBusTimeout; data: Pointer): dbus_bool_t;
|
|
|
|
- DBusTimeoutToggledFunction = procedure(timeout: PDBusTimeout; data: Pointer);
|
|
|
|
- DBusRemoveTimeoutFunction = procedure(timeout: PDBusTimeout; data: Pointer);
|
|
|
|
|
|
+ DBusAddWatchFunction = function (watch: PDBusWatch; data: Pointer): dbus_bool_t; cdecl;
|
|
|
|
+ DBusWatchToggledFunction = procedure(watch: PDBusWatch; data: Pointer); cdecl;
|
|
|
|
+ DBusRemoveWatchFunction = procedure(watch: PDBusWatch; data: Pointer); cdecl;
|
|
|
|
+ DBusAddTimeoutFunction = function(timeout: PDBusTimeout; data: Pointer): dbus_bool_t; cdecl;
|
|
|
|
+ DBusTimeoutToggledFunction = procedure(timeout: PDBusTimeout; data: Pointer); cdecl;
|
|
|
|
+ DBusRemoveTimeoutFunction = procedure(timeout: PDBusTimeout; data: Pointer); cdecl;
|
|
DBusDispatchStatusFunction = procedure(connection: PDBusConnection;
|
|
DBusDispatchStatusFunction = procedure(connection: PDBusConnection;
|
|
- new_status: DBusDispatchStatus; data: Pointer);
|
|
|
|
- DBusWakeupMainFunction = procedure(data: Pointer);
|
|
|
|
|
|
+ new_status: DBusDispatchStatus; data: Pointer); cdecl;
|
|
|
|
+ DBusWakeupMainFunction = procedure(data: Pointer); cdecl;
|
|
DBusAllowUnixUserFunction = function(connection: PDBusConnection;
|
|
DBusAllowUnixUserFunction = function(connection: PDBusConnection;
|
|
- uid: cuint; data: Pointer): dbus_bool_t;
|
|
|
|
|
|
+ uid: cuint; data: Pointer): dbus_bool_t; cdecl;
|
|
|
|
+
|
|
|
|
+ DBusAllowWindowsUserFunction = function(connection: PDBusConnection;
|
|
|
|
+ user_sid: PChar; data: Pointer): dbus_bool_t; cdecl;
|
|
|
|
|
|
DBusPendingCallNotifyFunction = procedure(pending: PDBusPendingCall;
|
|
DBusPendingCallNotifyFunction = procedure(pending: PDBusPendingCall;
|
|
- user_data: Pointer);
|
|
|
|
|
|
+ user_data: Pointer); cdecl;
|
|
|
|
|
|
DBusHandleMessageFunction = function(connection: PDBusConnection;
|
|
DBusHandleMessageFunction = function(connection: PDBusConnection;
|
|
- message_: PDBusMessage; user_data: Pointer): DBusHandlerResult;
|
|
|
|
|
|
+ message_: PDBusMessage; user_data: Pointer): DBusHandlerResult; cdecl;
|
|
|
|
|
|
function dbus_connection_open(const address: PChar; error: PDBusError): PDBusConnection; cdecl; external LibDBus;
|
|
function dbus_connection_open(const address: PChar; error: PDBusError): PDBusConnection; cdecl; external LibDBus;
|
|
function dbus_connection_open_private(const address: PChar; error: PDBusError): PDBusConnection; cdecl; external LibDBus;
|
|
function dbus_connection_open_private(const address: PChar; error: PDBusError): PDBusConnection; cdecl; external LibDBus;
|
|
@@ -133,13 +136,30 @@ function dbus_connection_get_unix_user(connection: PDBusConnection;
|
|
uid: Pculong): dbus_bool_t; cdecl; external LibDBus;
|
|
uid: Pculong): dbus_bool_t; cdecl; external LibDBus;
|
|
function dbus_connection_get_unix_process_id(connection: PDBusConnection;
|
|
function dbus_connection_get_unix_process_id(connection: PDBusConnection;
|
|
pid: Pculong): dbus_bool_t; cdecl; external LibDBus;
|
|
pid: Pculong): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
+function dbus_connection_get_adt_audit_session_data(connection: PDBusConnection;
|
|
|
|
+ data: PPointer; data_size: Pdbus_int32_t): dbus_bool_t; cdecl; external LibDBus;
|
|
procedure dbus_connection_set_unix_user_function(connection: PDBusConnection;
|
|
procedure dbus_connection_set_unix_user_function(connection: PDBusConnection;
|
|
function_: DBusAllowUnixUserFunction;
|
|
function_: DBusAllowUnixUserFunction;
|
|
data: Pointer;
|
|
data: Pointer;
|
|
free_data_function: DBusFreeFunction); cdecl; external LibDBus;
|
|
free_data_function: DBusFreeFunction); cdecl; external LibDBus;
|
|
|
|
|
|
|
|
+function dbus_connection_get_windows_user(connection: PDBusConnection;
|
|
|
|
+ windows_sid_p: PPChar): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
+procedure dbus_connection_set_windows_user_function(connection: PDBusConnection;
|
|
|
|
+ function_: DBusAllowWindowsUserFunction;
|
|
|
|
+ data: Pointer;
|
|
|
|
+ free_data_function: DBusFreeFunction); cdecl; external LibDBus;
|
|
|
|
+
|
|
|
|
+procedure dbus_connection_set_allow_anonymous(connection: PDBusConnection;
|
|
|
|
+ value: dbus_bool_t); cdecl; external LibDBus;
|
|
|
|
+procedure dbus_connection_set_route_peer_messages(connection: PDBusConnection;
|
|
|
|
+ value: dbus_bool_t); cdecl; external LibDBus;
|
|
|
|
|
|
|
|
+//deprecated:
|
|
function dbus_watch_get_fd(watch: PDBusWatch): cint; cdecl; external LibDBus;
|
|
function dbus_watch_get_fd(watch: PDBusWatch): cint; cdecl; external LibDBus;
|
|
|
|
+
|
|
|
|
+function dbus_watch_get_unix_fd(watch: PDBusWatch): cint; cdecl; external LibDBus;
|
|
|
|
+function dbus_watch_get_socket(watch: PDBusWatch): cint; cdecl; external LibDBus;
|
|
function dbus_watch_get_flags(watch: PDBusWatch): cuint; cdecl; external LibDBus;
|
|
function dbus_watch_get_flags(watch: PDBusWatch): cuint; cdecl; external LibDBus;
|
|
function dbus_watch_get_data(watch: PDBusWatch): Pointer; cdecl; external LibDBus;
|
|
function dbus_watch_get_data(watch: PDBusWatch): Pointer; cdecl; external LibDBus;
|
|
procedure dbus_watch_set_data(watch: PDBusWatch;
|
|
procedure dbus_watch_set_data(watch: PDBusWatch;
|
|
@@ -189,15 +209,15 @@ procedure dbus_connection_send_preallocated (connection: PDBusConnection;
|
|
|
|
|
|
type
|
|
type
|
|
DBusObjectPathUnregisterFunction = procedure(connection: PDBusConnection;
|
|
DBusObjectPathUnregisterFunction = procedure(connection: PDBusConnection;
|
|
- user_data: Pointer);
|
|
|
|
|
|
+ user_data: Pointer); cdecl;
|
|
DBusObjectPathMessageFunction = function(connection: PDBusConnection;
|
|
DBusObjectPathMessageFunction = function(connection: PDBusConnection;
|
|
- message_: PDBusMessage; user_data: Pointer): DBusHandlerResult;
|
|
|
|
|
|
+ message_: PDBusMessage; user_data: Pointer): DBusHandlerResult; cdecl;
|
|
|
|
|
|
{
|
|
{
|
|
* Virtual table that must be implemented to handle a portion of the
|
|
* Virtual table that must be implemented to handle a portion of the
|
|
* object path hierarchy.
|
|
* object path hierarchy.
|
|
}
|
|
}
|
|
- dbus_internal_func = procedure(param1: Pointer);
|
|
|
|
|
|
+ dbus_internal_func = procedure(param1: Pointer); cdecl;
|
|
|
|
|
|
PDBusObjectPathVTable = ^DBusObjectPathVTable;
|
|
PDBusObjectPathVTable = ^DBusObjectPathVTable;
|
|
|
|
|
|
@@ -212,10 +232,18 @@ type
|
|
dbus_internal_pad4: dbus_internal_func; {< Reserved for future expansion }
|
|
dbus_internal_pad4: dbus_internal_func; {< Reserved for future expansion }
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function dbus_connection_try_register_object_path(connection: PDBusConnection;
|
|
|
|
+ path: PChar; vtable: PDBusObjectPathVTable; user_data: Pointer;
|
|
|
|
+ error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
+
|
|
function dbus_connection_register_object_path(connection: PDBusConnection;
|
|
function dbus_connection_register_object_path(connection: PDBusConnection;
|
|
- const path: PChar;
|
|
|
|
- const vtable: PDBusObjectPathVTable;
|
|
|
|
|
|
+ path: PChar; vtable: PDBusObjectPathVTable;
|
|
user_data: Pointer): dbus_bool_t; cdecl; external LibDBus;
|
|
user_data: Pointer): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
+
|
|
|
|
+function dbus_connection_try_register_fallback(connection: PDBusConnection;
|
|
|
|
+ path: PChar; vtable: PDBusObjectPathVTable; user_data: Pointer;
|
|
|
|
+ error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
+
|
|
function dbus_connection_register_fallback(connection: PDBusConnection;
|
|
function dbus_connection_register_fallback(connection: PDBusConnection;
|
|
const path: PChar;
|
|
const path: PChar;
|
|
const vtable: PDBusObjectPathVTable;
|
|
const vtable: PDBusObjectPathVTable;
|
|
@@ -234,3 +262,6 @@ function dbus_connection_list_registered(connection: PDBusConnection;
|
|
function dbus_connection_get_unix_fd(connection: PDBusConnection;
|
|
function dbus_connection_get_unix_fd(connection: PDBusConnection;
|
|
fd: Pcint): dbus_bool_t; cdecl; external LibDBus;
|
|
fd: Pcint): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
|
|
|
|
+function dbus_connection_get_socket(connection: PDBusConnection;
|
|
|
|
+ fd: Pcint): dbus_bool_t; cdecl; external LibDBus;
|
|
|
|
+
|