summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-05-05 15:14:22 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-05-05 15:14:22 -0400
commitfa6c61da654a60df38234f6b07b28e7d189aab03 (patch)
treeec7b919caee33b40203363f5c3addf2e30027ed5 /docs
parent5ac2a892e8be377d91d9ed9294a7781492860bf2 (diff)
Add support for a G_DBUS_DEBUG environment variable
If 'authentication' is set we print output like in [0]. If 'messages' is set we print the output like in [1]. It would be cool to resolve the inode to a file name but unfortunately there's no easy way to do that... [0] : $ G_DBUS_DEBUG=authentication,message ./peer /gdbus/peer-to-peer: GDBus-debug:Auth: CLIENT: initiating GDBus-debug:Auth: SERVER: initiating GDBus-debug:Auth: CLIENT: sent credentials GDBus-debug:Auth: CLIENT: writing `AUTH\r\n' GDBus-debug:Auth: CLIENT: WaitingForReject GDBus-debug:Auth: SERVER: received credentials GDBus-debug:Auth: SERVER: WaitingForAuth GDBus-debug:Auth: SERVER: WaitingForAuth, read `AUTH' GDBus-debug:Auth: SERVER: writing `REJECTED EXTERNAL DBUS_COOKIE_SHA1\r\n' GDBus-debug:Auth: SERVER: WaitingForAuth GDBus-debug:Auth: CLIENT: WaitingForReject, read 'REJECTED EXTERNAL DBUS_COOKIE_SHA1' GDBus-debug:Auth: CLIENT: Trying to choose mechanism GDBus-debug:Auth: CLIENT: Trying mechanism `EXTERNAL' GDBus-debug:Auth: CLIENT: writing `AUTH EXTERNAL 353030\r\n' GDBus-debug:Auth: CLIENT: WaitingForOK GDBus-debug:Auth: SERVER: WaitingForAuth, read `AUTH EXTERNAL 353030' GDBus-debug:Auth: SERVER: writing `OK aa7922555bd61069e1e083274be1c409\r\n' GDBus-debug:Auth: SERVER: WaitingForBegin GDBus-debug:Auth: CLIENT: WaitingForOK, read `OK aa7922555bd61069e1e083274be1c409' GDBus-debug:Auth: CLIENT: writing `NEGOTIATE_UNIX_FD\r\n' GDBus-debug:Auth: CLIENT: WaitingForAgreeUnixFD GDBus-debug:Auth: SERVER: WaitingForBegin, read `NEGOTIATE_UNIX_FD' GDBus-debug:Auth: SERVER: writing `AGREE_UNIX_FD\r\n' GDBus-debug:Auth: SERVER: WaitingForBegin GDBus-debug:Auth: CLIENT: WaitingForAgreeUnixFD, read=`AGREE_UNIX_FD' GDBus-debug:Auth: CLIENT: writing `BEGIN\r\n' GDBus-debug:Auth: CLIENT: Done, authenticated=1 GDBus-debug:Auth: SERVER: WaitingForBegin, read `BEGIN' GDBus-debug:Auth: SERVER: Done, authenticated=1 [1] : This is also obtained from running the 'peer' test program ======================================================================== GDBus-debug:Message: <<<< RECEIVED D-Bus message (143 bytes) Type: method-call Flags: none Version: 0 Serial: 4 Headers: path -> objectpath '/org/gtk/GDBus/PeerTestObject' interface -> 'org.gtk.GDBus.PeerTestInterface' member -> 'OpenFile' signature -> signature 's' Body: ('/etc/hosts',) UNIX File Descriptors: (none) 0000: 6c 01 00 01 0f 00 00 00 04 00 00 00 70 00 00 00 l...........p... 0010: 08 01 67 00 01 73 00 00 01 01 6f 00 1d 00 00 00 ..g..s....o..... 0020: 2f 6f 72 67 2f 67 74 6b 2f 47 44 42 75 73 2f 50 /org/gtk/GDBus/P 0030: 65 65 72 54 65 73 74 4f 62 6a 65 63 74 00 00 00 eerTestObject... 0040: 03 01 73 00 08 00 00 00 4f 70 65 6e 46 69 6c 65 ..s.....OpenFile 0050: 00 00 00 00 00 00 00 00 02 01 73 00 1f 00 00 00 ..........s..... 0060: 6f 72 67 2e 67 74 6b 2e 47 44 42 75 73 2e 50 65 org.gtk.GDBus.Pe 0070: 65 72 54 65 73 74 49 6e 74 65 72 66 61 63 65 00 erTestInterface. 0080: 0a 00 00 00 2f 65 74 63 2f 68 6f 73 74 73 00 ..../etc/hosts. ======================================================================== GDBus-debug:Message: >>>> SENT D-Bus message (32 bytes) Type: method-return Flags: no-reply-expected Version: 0 Serial: 0 Headers: reply-serial -> uint32 4 num-unix-fds -> uint32 1 Body: () UNIX File Descriptors: fd 21: dev=8:1,mode=0100644,ino=1171231,uid=0,gid=0,rdev=0:0,size=234,atime=1273070640,mtime=1267126160,ctime=1267126160 0000: 6c 02 01 01 00 00 00 00 05 00 00 00 10 00 00 00 l............... 0010: 09 01 75 00 01 00 00 00 05 01 75 00 04 00 00 00 ..u.......u.....
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gdbus/gdbus-standalone-sections.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/reference/gdbus/gdbus-standalone-sections.txt b/docs/reference/gdbus/gdbus-standalone-sections.txt
index 053e737..1f3865e 100644
--- a/docs/reference/gdbus/gdbus-standalone-sections.txt
+++ b/docs/reference/gdbus/gdbus-standalone-sections.txt
@@ -127,6 +127,7 @@ g_dbus_message_new_method_call
g_dbus_message_new_method_error
g_dbus_message_new_method_reply
g_dbus_message_new_signal
+g_dbus_message_print
g_dbus_message_get_type
g_dbus_message_set_type
g_dbus_message_get_serial