Changeset 286 for trunk

Show
Ignore:
Timestamp:
03/09/09 13:50:05 (3 years ago)
Author:
ath
bzr:committer:
Alberto Botti <alberto.botti@gmail.com>
bzr:file-ids:

rgc/bindings/Makefile.am makefile.am-20090304125849-94t07i1rdeqfbiz4-2
rgc/bindings/Makefile.in makefile.in-20090304125849-94t07i1rdeqfbiz4-3
rgc/bindings/rgcclient.py rgcclient.py-20090309124804-gv0s9bl7irstjw20-1
rgc/bindings/rgcclientmodule.c rgcclientmodule.c-20090304125849-94t07i1rdeqfbiz4-8
rgc/include/client/rgc_remote_object.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fclient%2Frgc_remote_object.h
rgc/include/connection/dbus dbus-20090309124738-7jqwtsoeh0smey9o-1
rgc/include/connection/dbus/Makefile.am makefile.am-20090309124738-7jqwtsoeh0smey9o-2
rgc/include/connection/dbus/Makefile.in makefile.in-20090309124738-7jqwtsoeh0smey9o-3
rgc/include/connection/dbus/rgc_protocol_dbus_server.h rgc_protocol_dbus_se-20090309124738-7jqwtsoeh0smey9o-4
rgc/include/connection/rgc_protocol_server.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fconnection%2Frgc_protocol_server.h
rgc/include/server/rgc_object.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fserver%2Frgc_object.h
rgc/m4/python.m4 python.m4-20090309124748-wy3rbsc3plbva03d-1
rgc/src/client/Makefile.am 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2FMakefile.am
rgc/src/client/Makefile.in 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2FMakefile.in
rgc/src/client/rgc_callback.c rgc_callback.c-20090309124812-al9t3gcqn9mvzizb-1
rgc/src/client/rgc_callback.h rgc_callback.h-20090309124812-al9t3gcqn9mvzizb-2
rgc/src/client/rgc_remote_object.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2Frgc_remote_object.c
rgc/src/common/rgc_utils.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fcommon%2Frgc_utils.c
rgc/src/common/rgc_utils.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fcommon%2Frgc_utils.h
rgc/src/connection/dbus dbus-20090309124819-kmj94w5bsr24cefl-1
rgc/src/connection/dbus/Makefile.am makefile.am-20090309124819-kmj94w5bsr24cefl-2
rgc/src/connection/dbus/Makefile.in makefile.in-20090309124819-kmj94w5bsr24cefl-3
rgc/src/connection/dbus/rgc_protocol_dbus_server.c rgc_protocol_dbus_se-20090309124819-kmj94w5bsr24cefl-4
rgc/src/connection/dbus/rgc_protocol_dbus_server.h rgc_protocol_dbus_se-20090309124819-kmj94w5bsr24cefl-5
rgc/src/connection/rbp/rbp_message_execute_server.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frbp_message_execute_server.c
rgc/src/connection/rbp/rgc_protocol_rbp_client.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frgc_protocol_rbp_client.c
rgc/src/connection/rbp/rgc_protocol_rbp_common.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frgc_protocol_rbp_common.c
rgc/src/connection/rbp/rgc_protocol_rbp_server.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frgc_protocol_rbp_server.c
rgc/src/connection/rgc_connection_server.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_connection_server.c
rgc/src/connection/rgc_connection_server.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_connection_server.h
rgc/src/connection/rgc_protocol_server.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_protocol_server.c
rgc/src/connection/rgc_protocol_server.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_protocol_server.h
rgc/src/server/rgc_marshal.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_marshal.c
rgc/src/server/rgc_object.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_object.c
rgc/src/server/rgc_object.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_object.h
rgc/src/server/rgc_server.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_server.c
rgc/test/Makefile.am 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2FMakefile.am
rgc/test/Makefile.in 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2FMakefile.in
rgc/test/check_init.c check_init.c-20090204203613-m3ngse0c6gqkaqk9-1
rgc/test/check_query.c check_query.c-20090309124827-7ebnk01c4gfihigv-1
rgc/test/check_remote_obj.c check_remote_obj.c-20090309124832-uxme781mpafyryoo-1
rgc/test/check_shared.c check_shared.c-20090309124835-bfnjifxjgm826kkp-1
rgc/test/check_shared.h check_shared.h-20090309124839-0d19zdvkqnb38w1g-1
rgc/test/client_query.c client_query.c-20090309124843-p05fbd5jg3mrq963-1
rgc/test/object1.c 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2Fobject1.c
rgc/tools/rgc_genmarshal.py 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftools%2Frgc_genmarshal.py
bzr:merge:

alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
bzr:revno:
78
bzr:revprop:branch-nick:
trunk
bzr:root:
trunk
bzr:text-parents:

rgc/bindings/Makefile.am alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/bindings/Makefile.in alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/bindings/rgcclient.py alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/bindings/rgcclientmodule.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/include/client/rgc_remote_object.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/include/connection/dbus alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/include/connection/dbus/Makefile.am alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/include/connection/dbus/Makefile.in alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/include/connection/dbus/rgc_protocol_dbus_server.h alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/include/connection/rgc_protocol_server.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/include/server/rgc_object.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/m4/python.m4 alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/client/Makefile.am alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/client/Makefile.in alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/client/rgc_callback.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/client/rgc_callback.h alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/client/rgc_remote_object.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/common/rgc_utils.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/common/rgc_utils.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/dbus alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/connection/dbus/Makefile.am alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/connection/dbus/Makefile.in alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/connection/dbus/rgc_protocol_dbus_server.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/connection/dbus/rgc_protocol_dbus_server.h alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/src/connection/rbp/rbp_message_execute_server.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rbp/rgc_protocol_rbp_client.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rbp/rgc_protocol_rbp_common.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rbp/rgc_protocol_rbp_server.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rgc_connection_server.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rgc_connection_server.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rgc_protocol_server.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/connection/rgc_protocol_server.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/server/rgc_marshal.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/server/rgc_object.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/server/rgc_object.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/src/server/rgc_server.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/test/Makefile.am alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/test/Makefile.in alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/test/check_init.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/test/check_query.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/test/check_remote_obj.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/test/check_shared.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/test/check_shared.h alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/test/client_query.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb
rgc/test/object1.c alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
rgc/tools/rgc_genmarshal.py alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6
bzr:timestamp:
2009-03-09 13:49:35.346999884 +0100
Message:

Make RGC build again.

Location:
trunk
Files:
18 added
29 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property bzr:ancestry:v3-trunk0
      •  

        old new  
        33alberto.botti@gmail.com-20090204203706-s4k8dta7qo2zk9xr 
        44alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
         5alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
    • Property bzr:file-ids
      •  

        old new  
        1 fm_gui/src/marlin-window-menu.c 255@45ad373b-3914-0410-8193-a61cc481f39f:trunk:fm_gui%2Fsrc%2Fmarlin-window-menu.c 
        2 fm_server/src/main.c    210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:fm_server%2Fsrc%2Fmain.c 
        3 rgc/Makefile.am 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2FMakefile.am 
        4 rgc/Makefile.in 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2FMakefile.in 
        5 rgc/aclocal.m4  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Faclocal.m4 
        6 rgc/bindings    bindings-20090304125849-94t07i1rdeqfbiz4-1 
        71rgc/bindings/Makefile.am        makefile.am-20090304125849-94t07i1rdeqfbiz4-2 
        82rgc/bindings/Makefile.in        makefile.in-20090304125849-94t07i1rdeqfbiz4-3 
        9 rgc/bindings/libpy_rgc_client.la        libpy_rgc_client.la-20090304125849-94t07i1rdeqfbiz4-4 
        10 rgc/bindings/python     python-20090304125849-94t07i1rdeqfbiz4-5 
        11 rgc/bindings/rgcclient_protocol.c       rgcclient_protocol.c-20090304125849-94t07i1rdeqfbiz4-6 
        12 rgc/bindings/rgcclient_protocol.h       rgcclient_protocol.h-20090304125849-94t07i1rdeqfbiz4-7 
         3rgc/bindings/rgcclient.py       rgcclient.py-20090309124804-gv0s9bl7irstjw20-1 
        134rgc/bindings/rgcclientmodule.c  rgcclientmodule.c-20090304125849-94t07i1rdeqfbiz4-8 
        14 rgc/bindings/works      works-20090304125849-94t07i1rdeqfbiz4-9 
        15 rgc/bindings/works/Makefile.am  makefile.am-20090304125849-94t07i1rdeqfbiz4-10 
        16 rgc/bindings/works/rgcclient_protocol.c rgcclient_protocol.c-20090304125849-94t07i1rdeqfbiz4-11 
        17 rgc/bindings/works/rgcclient_protocol.h rgcclient_protocol.h-20090304125849-94t07i1rdeqfbiz4-12 
        18 rgc/bindings/works/rgcclientmodule.c    rgcclientmodule.c-20090304125849-94t07i1rdeqfbiz4-13 
        19 rgc/configure   210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fconfigure 
        20 rgc/configure.ac        215@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fconfigure.ac 
        21 rgc/include/Makefile.in 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2FMakefile.in 
        22 rgc/include/client/Makefile.in  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fclient%2FMakefile.in 
        23 rgc/include/client/rgc_query.h  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fclient%2Frgc_query.h 
        24 rgc/include/common/Makefile.in  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fcommon%2FMakefile.in 
        25 rgc/include/connection/Makefile.am      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fconnection%2FMakefile.am 
        26 rgc/include/connection/Makefile.in      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fconnection%2FMakefile.in 
        27 rgc/include/connection/rbp/Makefile.in  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fconnection%2Frbp%2FMakefile.in 
         5rgc/include/client/rgc_remote_object.h  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fclient%2Frgc_remote_object.h 
         6rgc/include/connection/dbus     dbus-20090309124738-7jqwtsoeh0smey9o-1 
         7rgc/include/connection/dbus/Makefile.am makefile.am-20090309124738-7jqwtsoeh0smey9o-2 
         8rgc/include/connection/dbus/Makefile.in makefile.in-20090309124738-7jqwtsoeh0smey9o-3 
         9rgc/include/connection/dbus/rgc_protocol_dbus_server.h  rgc_protocol_dbus_se-20090309124738-7jqwtsoeh0smey9o-4 
        2810rgc/include/connection/rgc_protocol_server.h    210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fconnection%2Frgc_protocol_server.h 
        29 rgc/include/rgc_server.h        210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Frgc_server.h 
        30 rgc/include/server/Makefile.in  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fserver%2FMakefile.in 
        31 rgc/src/Makefile.in     210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2FMakefile.in 
         11rgc/include/server/rgc_object.h 210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Finclude%2Fserver%2Frgc_object.h 
         12rgc/m4/python.m4        python.m4-20090309124748-wy3rbsc3plbva03d-1 
         13rgc/src/client/Makefile.am      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2FMakefile.am 
        3214rgc/src/client/Makefile.in      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2FMakefile.in 
        33 rgc/src/client/rgc_query.c      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2Frgc_query.c 
        34 rgc/src/common/Makefile.in      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fcommon%2FMakefile.in 
        35 rgc/src/connection/Makefile.am  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2FMakefile.am 
        36 rgc/src/connection/Makefile.in  210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2FMakefile.in 
        37 rgc/src/connection/rbp/Makefile.in      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2FMakefile.in 
        38 rgc/src/connection/rbp/rbp_message.c    210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frbp_message.c 
         15rgc/src/client/rgc_callback.c   rgc_callback.c-20090309124812-al9t3gcqn9mvzizb-1 
         16rgc/src/client/rgc_callback.h   rgc_callback.h-20090309124812-al9t3gcqn9mvzizb-2 
         17rgc/src/client/rgc_remote_object.c      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fclient%2Frgc_remote_object.c 
         18rgc/src/common/rgc_utils.c      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fcommon%2Frgc_utils.c 
         19rgc/src/common/rgc_utils.h      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fcommon%2Frgc_utils.h 
         20rgc/src/connection/dbus dbus-20090309124819-kmj94w5bsr24cefl-1 
         21rgc/src/connection/dbus/Makefile.am     makefile.am-20090309124819-kmj94w5bsr24cefl-2 
         22rgc/src/connection/dbus/Makefile.in     makefile.in-20090309124819-kmj94w5bsr24cefl-3 
         23rgc/src/connection/dbus/rgc_protocol_dbus_server.c      rgc_protocol_dbus_se-20090309124819-kmj94w5bsr24cefl-4 
         24rgc/src/connection/dbus/rgc_protocol_dbus_server.h      rgc_protocol_dbus_se-20090309124819-kmj94w5bsr24cefl-5 
        3925rgc/src/connection/rbp/rbp_message_execute_server.c     210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frbp_message_execute_server.c 
        40 rgc/src/connection/rbp/rbp_message_lowlevel.c   210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frbp_message_lowlevel.c 
        4126rgc/src/connection/rbp/rgc_protocol_rbp_client.c        210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frgc_protocol_rbp_client.c 
         27rgc/src/connection/rbp/rgc_protocol_rbp_common.c        210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frgc_protocol_rbp_common.c 
        4228rgc/src/connection/rbp/rgc_protocol_rbp_server.c        210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frbp%2Frgc_protocol_rbp_server.c 
        43 rgc/src/connection/rgc_connection_client.c      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_connection_client.c 
        4429rgc/src/connection/rgc_connection_server.c      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_connection_server.c 
        4530rgc/src/connection/rgc_connection_server.h      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_connection_server.h 
        4631rgc/src/connection/rgc_protocol_server.c        210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_protocol_server.c 
        4732rgc/src/connection/rgc_protocol_server.h        210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fconnection%2Frgc_protocol_server.h 
        48 rgc/src/server/Makefile.in      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2FMakefile.in 
         33rgc/src/server/rgc_marshal.c    210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_marshal.c 
        4934rgc/src/server/rgc_object.c     210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_object.c 
         35rgc/src/server/rgc_object.h     210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_object.h 
         36rgc/src/server/rgc_server.c     210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Fsrc%2Fserver%2Frgc_server.c 
        5037rgc/test/Makefile.am    210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2FMakefile.am 
        5138rgc/test/Makefile.in    210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2FMakefile.in 
        52 rgc/test/new_server.c   210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2Fnew_server.c 
         39rgc/test/check_init.c   check_init.c-20090204203613-m3ngse0c6gqkaqk9-1 
         40rgc/test/check_query.c  check_query.c-20090309124827-7ebnk01c4gfihigv-1 
         41rgc/test/check_remote_obj.c     check_remote_obj.c-20090309124832-uxme781mpafyryoo-1 
         42rgc/test/check_shared.c check_shared.c-20090309124835-bfnjifxjgm826kkp-1 
         43rgc/test/check_shared.h check_shared.h-20090309124839-0d19zdvkqnb38w1g-1 
         44rgc/test/client_query.c client_query.c-20090309124843-p05fbd5jg3mrq963-1 
         45rgc/test/object1.c      210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftest%2Fobject1.c 
         46rgc/tools/rgc_genmarshal.py     210@45ad373b-3914-0410-8193-a61cc481f39f:trunk:rgc%2Ftools%2Frgc_genmarshal.py 
    • Property bzr:revision-id:v3-trunk0
      •  

        old new  
        4476 alberto.botti@gmail.com-20090218123806-qufqpor0got1ukjt 
        5577 alberto.botti@gmail.com-20090308115426-ejgls1qm379mhy0n 
         678 alberto.botti@gmail.com-20090309124935-5ism9w2uyk4rv609 
    • Property bzr:revision-info
      •  

        old new  
        1 timestamp: 2009-03-08 12:54:26.543999910 +0100 
         1timestamp: 2009-03-09 13:49:35.346999884 +0100 
        22committer: Alberto Botti <alberto.botti@gmail.com> 
        33properties:  
    • Property bzr:text-parents
      •  

        old new  
        1 fm_gui/src/marlin-window-menu.c alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        2 fm_server/src/main.c    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        3 rgc/Makefile.am alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        4 rgc/Makefile.in alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        5 rgc/aclocal.m4  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        6 rgc/bindings    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        7 rgc/bindings/Makefile.am        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        8 rgc/bindings/Makefile.in        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        9 rgc/bindings/libpy_rgc_client.la        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        10 rgc/bindings/python     alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        11 rgc/bindings/rgcclient_protocol.c       alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        12 rgc/bindings/rgcclient_protocol.h       alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        13 rgc/bindings/rgcclientmodule.c  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        14 rgc/bindings/works      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        15 rgc/bindings/works/Makefile.am  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        16 rgc/bindings/works/rgcclient_protocol.c alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        17 rgc/bindings/works/rgcclient_protocol.h alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        18 rgc/bindings/works/rgcclientmodule.c    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        19 rgc/configure   alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        20 rgc/configure.ac        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        21 rgc/include/Makefile.in alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        22 rgc/include/client/Makefile.in  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        23 rgc/include/client/rgc_query.h  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        24 rgc/include/common/Makefile.in  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        25 rgc/include/connection/Makefile.am      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        26 rgc/include/connection/Makefile.in      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        27 rgc/include/connection/rbp/Makefile.in  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        28 rgc/include/connection/rgc_protocol_server.h    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        29 rgc/include/rgc_server.h        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        30 rgc/include/server/Makefile.in  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        31 rgc/src/Makefile.in     alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        32 rgc/src/client/Makefile.in      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        33 rgc/src/client/rgc_query.c      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        34 rgc/src/common/Makefile.in      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        35 rgc/src/connection/Makefile.am  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        36 rgc/src/connection/Makefile.in  alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        37 rgc/src/connection/rbp/Makefile.in      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        38 rgc/src/connection/rbp/rbp_message.c    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        39 rgc/src/connection/rbp/rbp_message_execute_server.c     alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        40 rgc/src/connection/rbp/rbp_message_lowlevel.c   alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        41 rgc/src/connection/rbp/rgc_protocol_rbp_client.c        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        42 rgc/src/connection/rbp/rgc_protocol_rbp_server.c        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        43 rgc/src/connection/rgc_connection_client.c      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        44 rgc/src/connection/rgc_connection_server.c      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        45 rgc/src/connection/rgc_connection_server.h      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        46 rgc/src/connection/rgc_protocol_server.c        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        47 rgc/src/connection/rgc_protocol_server.h        alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        48 rgc/src/server/Makefile.in      alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        49 rgc/src/server/rgc_object.c     alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        50 rgc/test/Makefile.am    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        51 rgc/test/Makefile.in    alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
        52 rgc/test/new_server.c   alberto.botti@gmail.com-20090304130000-1a9z78agyveb0x12 
         1rgc/bindings/Makefile.am        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         2rgc/bindings/Makefile.in        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         3rgc/bindings/rgcclient.py       alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         4rgc/bindings/rgcclientmodule.c  alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         5rgc/include/client/rgc_remote_object.h  alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         6rgc/include/connection/dbus     alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         7rgc/include/connection/dbus/Makefile.am alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         8rgc/include/connection/dbus/Makefile.in alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         9rgc/include/connection/dbus/rgc_protocol_dbus_server.h  alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         10rgc/include/connection/rgc_protocol_server.h    alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         11rgc/include/server/rgc_object.h alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         12rgc/m4/python.m4        alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         13rgc/src/client/Makefile.am      alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         14rgc/src/client/Makefile.in      alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         15rgc/src/client/rgc_callback.c   alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         16rgc/src/client/rgc_callback.h   alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         17rgc/src/client/rgc_remote_object.c      alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         18rgc/src/common/rgc_utils.c      alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         19rgc/src/common/rgc_utils.h      alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         20rgc/src/connection/dbus alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         21rgc/src/connection/dbus/Makefile.am     alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         22rgc/src/connection/dbus/Makefile.in     alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         23rgc/src/connection/dbus/rgc_protocol_dbus_server.c      alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         24rgc/src/connection/dbus/rgc_protocol_dbus_server.h      alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         25rgc/src/connection/rbp/rbp_message_execute_server.c     alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         26rgc/src/connection/rbp/rgc_protocol_rbp_client.c        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         27rgc/src/connection/rbp/rgc_protocol_rbp_common.c        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         28rgc/src/connection/rbp/rgc_protocol_rbp_server.c        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         29rgc/src/connection/rgc_connection_server.c      alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         30rgc/src/connection/rgc_connection_server.h      alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         31rgc/src/connection/rgc_protocol_server.c        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         32rgc/src/connection/rgc_protocol_server.h        alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         33rgc/src/server/rgc_marshal.c    alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         34rgc/src/server/rgc_object.c     alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         35rgc/src/server/rgc_object.h     alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         36rgc/src/server/rgc_server.c     alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         37rgc/test/Makefile.am    alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         38rgc/test/Makefile.in    alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         39rgc/test/check_init.c   alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         40rgc/test/check_query.c  alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         41rgc/test/check_remote_obj.c     alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         42rgc/test/check_shared.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         43rgc/test/check_shared.h alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         44rgc/test/client_query.c alberto.botti@gmail.com-20090309124852-c9237byuwhf5xhtb 
         45rgc/test/object1.c      alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
         46rgc/tools/rgc_genmarshal.py     alberto.botti@gmail.com-20090306143652-vce6aj4qhdsnato6 
  • trunk/rgc/bindings/Makefile.am

    r285 r286  
    1515rgcclient_la_SOURCES = \ 
    1616        rgcclientmodule.c \ 
    17         rgcclientmodule.h \ 
    18         rgcclient_protocol.c 
     17        rgcclient_protocol.c \ 
     18        rgcclient_protocol.h 
    1919 
    2020 
  • trunk/rgc/bindings/Makefile.in

    r285 r286  
    257257rgcclient_la_SOURCES = \ 
    258258        rgcclientmodule.c \ 
    259         rgcclientmodule.h \ 
    260         rgcclient_protocol.c 
     259        rgcclient_protocol.c \ 
     260        rgcclient_protocol.h 
    261261 
    262262all: all-am 
  • trunk/rgc/bindings/rgcclientmodule.c

    r285 r286  
    1 #if 0 
    2  
    3 #include "rgcclient_protocol.h" 
    4  
    5 extern PyTypeObject rgcclient_RbpClientType; 
    6  
    7  
    8  
    9 DL_EXPORT(void) 
    10 initrgcclient(void) 
    11 { 
    12         PyObject *m, *d; 
    13  
    14         m = Py_InitModule3 ("rgcclient", RgcMethods, "RGC client Python wrapper"); 
    15         d = PyModule_GetDict (m); 
    16  
    17 //    py_rgc_client_register_classes (d); 
    18      
    19 //    py_poppler_add_constants(m, "POPPLER_"); 
    20  
    21 //    PyModule_AddObject(m, "pyrgcclient_version", NULL); 
    22 /*                       Py_BuildValue("iii", 
    23                                      PYPOPPLER_MAJOR_VERSION, 
    24                                      PYPOPPLER_MINOR_VERSION, 
    25                                      PYPOPPLER_MICRO_VERSION));*/ 
    26          
    27         Py_INCREF(&rgcclient_RbpClientType); 
    28         PyModule_AddObject(m, "RbpClient", (PyObject *)&rgcclient_RbpClientType); 
    29      
    30         if (PyErr_Occurred ()) { 
    31                 Py_FatalError ("can't initialise module rgcclient"); 
    32         } 
    33 } 
    34 #endif  
    35  
    36  
    37  
    381#include <Python.h> 
    392#include <structmember.h> 
     
    7942        g_print ("Got object PyRgcProtocolRbpClientType %p\n", py_obj); 
    8043 
    81         PyRgcProtocolRbpClient * py_prot = (PyRgcProtocolRbpClient *) py_obj; 
     44        PyRgcProtocolRbpClient *py_prot = (PyRgcProtocolRbpClient *) py_obj; 
    8245 
    8346        if (!py_prot || !(py_prot->prot)) 
     
    8952} 
    9053 
     54 
     55/*static PyObject * 
     56rgcclient_server_info (PyObject *self) 
     57{ 
     58 
     59        return Py_BuildValue (""); 
     60}*/ 
    9161 
    9262 
  • trunk/rgc/include/client/rgc_remote_object.h

    r3 r286  
    1212                                         gpointer       user_data); 
    1313 
     14typedef void  (*RgcRemoteObjectNotifyFunc) (RgcRemoteObject *obj, 
     15                                         const gchar    *name, 
     16                                         GValue         *value, 
     17                                         gpointer       user_data); 
    1418 
    15 RgcRemoteObject * 
     19 
     20/*RgcRemoteObject * 
    1621rgc_remote_object_new                   (const gchar    *class_name, 
    1722                                         const gchar    *obj_name, 
     
    3035                                         guint          property_n, 
    3136                                         gchar          **properties, 
    32                                          GValueArray    *array); 
     37                                         GValueArray    *array);*/ 
    3338 
    3439 
     
    99104                                         guint          parameter_n, 
    100105                                         GValueArray    *parameters); 
     106 
     107void 
     108rgc_remote_object_property_changed_notify (RgcRemoteObject *rgc_obj, 
     109                                         const gchar    *property_name, 
     110                                         RgcRemoteObjectNotifyFunc callback, 
     111                                         gpointer       user_data); 
  • trunk/rgc/include/connection/rgc_protocol_server.h

    r285 r286  
    3131                                         GValueArray    *values); 
    3232                                          
    33         void (*send_info)               (RgcProtocolServer *prot, 
     33        void (*property_changed)        (RgcProtocolServer *prot, 
     34                                         const gchar    *obj_name, 
     35                                         const gchar    *property_name, 
     36                                         GValue         *value); 
     37                                          
     38        void (*send_info)               (RgcProtocolServer *prot, 
    3439                                         const gchar    *obj_name, 
    3540                                         const gchar    *info_type, 
  • trunk/rgc/include/server/rgc_object.h

    r98 r286  
    1212rgc_object_get_name                     (GObject        *obj); 
    1313 
     14GObject * 
     15rgc_object_get_from_name                (const gchar    *obj_name); 
     16 
    1417#define G_OBJ_NAME(x) (rgc_object_get_name(G_OBJECT(obj))) 
  • trunk/rgc/src/client/Makefile.am

    r214 r286  
    1212        rgc_client_cmd.c\ 
    1313        rgc_marshal_cb.c\ 
     14        rgc_callback.c \ 
     15        rgc_callback.h \ 
    1416        rgc_remote_object.c\ 
    1517        rgc_remote_object.h\ 
  • trunk/rgc/src/client/Makefile.in

    r285 r286  
    5454librgc_client_only_la_DEPENDENCIES = 
    5555am_librgc_client_only_la_OBJECTS = rgc_client.lo rgc_client_cmd.lo \ 
    56         rgc_marshal_cb.lo rgc_remote_object.lo rgc_remote_signal.lo \ 
    57         rgc_query.lo rgc_info.lo 
     56        rgc_marshal_cb.lo rgc_callback.lo rgc_remote_object.lo \ 
     57        rgc_remote_signal.lo rgc_query.lo rgc_info.lo 
    5858librgc_client_only_la_OBJECTS = $(am_librgc_client_only_la_OBJECTS) 
    5959DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) 
     
    242242        rgc_client_cmd.c\ 
    243243        rgc_marshal_cb.c\ 
     244        rgc_callback.c \ 
     245        rgc_callback.h \ 
    244246        rgc_remote_object.c\ 
    245247        rgc_remote_object.h\ 
     
    305307        -rm -f *.tab.c 
    306308 
     309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rgc_callback.Plo@am__quote@ 
    307310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rgc_client.Plo@am__quote@ 
    308311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rgc_client_cmd.Plo@am__quote@ 
  • trunk/rgc/src/client/rgc_remote_object.c

    r152 r286  
    8484 
    8585 
    86 RgcRemoteObject * 
     86/*RgcRemoteObject * 
    8787rgc_remote_object_new                   (const gchar    *class_name, 
    8888                                         const gchar    *obj_name, 
     
    144144         
    145145        return rgc_obj; 
    146 } 
     146}*/ 
    147147 
    148148 
     
    347347        return FALSE; 
    348348} 
     349 
     350 
     351static void 
     352rgc_remote_object_notify_cb             (RgcRemoteObject *obj, 
     353                                         GValueArray    *array, 
     354                                         gpointer       cb_data, 
     355                                         RgcCbMarshal   c_marshaller, 
     356                                         GCallback      callback, 
     357                                         gpointer       user_data) 
     358{ 
     359        RgcRemoteObjectNotifyFunc cb = (RgcRemoteObjectNotifyFunc) cb_data;    // ehm... 
     360 
     361        const gchar *server_name = g_value_get_string (g_value_array_get_nth (array, 0)); 
     362 
     363        (*cb) (obj, server_name, g_value_array_get_nth (array, 1), user_data); 
     364} 
     365 
     366 
     367void 
     368rgc_remote_object_property_changed_notify (RgcRemoteObject *rgc_obj, 
     369                                         const gchar    *property_name, 
     370                                         RgcRemoteObjectNotifyFunc callback, 
     371                                         gpointer       user_data) 
     372{ 
     373        rgc_info_append_cb (rgc_obj, "_NOTIFY", rgc_remote_object_notify_cb, callback, NULL, NULL, user_data); 
     374} 
  • trunk/rgc/src/common/rgc_utils.c

    r136 r286  
    22#include <glib-object.h> 
    33#include <stdlib.h> 
     4#include <string.h> 
     5#include <ctype.h> 
    46 
    57inline GValue * 
     
    134136{ 
    135137} 
     138 
     139 
     140#define BYTES_FOR_LINE 16 
     141void 
     142rgc_dump_binary                         (gpointer       buffer, 
     143                                         gsize          len) 
     144{ 
     145        unsigned char *buf = (unsigned char *) buffer; 
     146        g_print ("Dump for %p, len %lu\n", buffer, len); 
     147        guint i = 0; 
     148 
     149        char ascii_buf[BYTES_FOR_LINE + 1]; 
     150 
     151        memset (ascii_buf, 0, sizeof (ascii_buf)); 
     152         
     153        while (i < len) { 
     154                g_print ("%02x ", buf[i]); 
     155 
     156                if (isprint (buf[i])) 
     157                        ascii_buf[i % BYTES_FOR_LINE] = buf[i]; 
     158                else 
     159                        ascii_buf[i % BYTES_FOR_LINE] = '.'; 
     160                i++; 
     161 
     162                if (i % BYTES_FOR_LINE == 0) { 
     163                        g_print ("   %s\n", ascii_buf); 
     164                        memset (ascii_buf, 0, sizeof (ascii_buf)); 
     165                } 
     166        } 
     167        if (i % BYTES_FOR_LINE != 0) { 
     168                gchar *fill = g_strnfill ((BYTES_FOR_LINE - (i % BYTES_FOR_LINE)) * 3, ' '); 
     169                g_print ("%s   %s", fill, ascii_buf); 
     170                g_free (fill); 
     171                g_print ("\n"); 
     172        } 
     173} 
  • trunk/rgc/src/common/rgc_utils.h

    r3 r286  
    2626g_value_create_from_string              (gchar          *string, 
    2727                                         GType          type); 
     28 
     29void 
     30rgc_dump_binary                         (gpointer       buffer, 
     31                                         gsize          len); 
  • trunk/rgc/src/connection/rbp/rbp_message_execute_server.c

    r285 r286  
    4040                                         gpointer       data) 
    4141{ 
    42 //      g_print(">>> %s\n", rbp_message_to_string (mess)); 
     42        g_print(">>> %s\n", rbp_message_to_string (mess)); 
    4343 
    4444        switch (mess->type) { 
  • trunk/rgc/src/connection/rbp/rgc_protocol_rbp_client.c

    r285 r286  
    2424#include "../rgc_protocol_client.h" 
    2525#include "rbp_message.h" 
     26#include "rbp_message_string.h" 
    2627#include "rbp_message_execute_client.h" 
    2728#include "rgc_protocol_rbp_common.h" 
     29#include "../../common/rgc_utils.h" 
    2830 
    2931 
     
    350352        GError *error = NULL; 
    351353 
     354        g_print ("<<< %s\n", rbp_message_to_string (mess)); 
     355 
    352356        GIOStatus status; 
    353357 
    354358        rbp_message_write (mess, &mem, &size); 
     359 
     360//      rgc_dump_binary (mem, size); 
    355361         
    356362        status = g_io_channel_write_chars (priv->channel, mem, size, &written, &error); 
  • trunk/rgc/src/connection/rbp/rgc_protocol_rbp_common.c

    r283 r286  
    2323                                         gpointer       data) 
    2424{ 
    25 //      g_print ("input!\n"); 
     25        //g_print ("input!\n"); 
    2626        GIOStatus status; 
    2727        GError *error = NULL; 
  • trunk/rgc/src/connection/rbp/rgc_protocol_rbp_server.c

    r285 r286  
    8383                                         guint          parameters_n, 
    8484                                         GValueArray    *values); 
     85 
     86static void 
     87rgc_protocol_rbp_server_property_changed (RgcProtocolServer *prot, 
     88                                         const gchar    *obj_name, 
     89                                         const gchar    *property_name, 
     90                                         GValue         *value); 
    8591 
    8692static void 
     
    166172        server_class->stop = rgc_protocol_rbp_server_stop; 
    167173        server_class->send_signal = rgc_protocol_rbp_server_send_signal; 
     174        server_class->property_changed = rgc_protocol_rbp_server_property_changed; 
    168175        server_class->send_info = rgc_protocol_rbp_server_send_info; 
    169176        server_class->register_object = rgc_protocol_rbp_server_register_object; 
     
    492499 
    493500static void 
     501rgc_protocol_rbp_server_property_changed (RgcProtocolServer *prot, 
     502                                         const gchar    *obj_name, 
     503                                         const gchar    *property_name, 
     504                                         GValue         *value) 
     505{ 
     506        GValueArray *array = g_value_array_new (2); 
     507        GValue *val1 = g_value_init_string (g_strdup (property_name)); 
     508        array = g_value_array_append(array, val1); 
     509        array = g_value_array_append(array, value); 
     510 
     511        RbpMessage *mess = (RbpMessage *) rbp_message_info_create (obj_name, "_NOTIFY", 2, array); 
     512         
     513        g_debug("server_property_changed... "); 
     514         
     515        rgc_protocol_rbp_server_send_message (RGC_PROTOCOL_RBP_SERVER (prot), mess); 
     516        rbp_message_destroy (mess); 
     517} 
     518 
     519 
     520static void 
    494521rgc_protocol_rbp_server_send_info       (RgcProtocolServer *prot, 
    495522                                         const gchar    *obj_name, 
  • trunk/rgc/src/connection/rgc_connection_server.c

    r285 r286  
    2020static GList *protocol_list = NULL; 
    2121 
     22/* FIXME: move these */ 
     23extern gchar *_rgc_server_name; 
     24extern gchar *_rgc_server_desc; 
     25 
    2226 
    2327gboolean 
     
    107111        g_assert (klass); 
    108112 
    109          
    110  
    111         while (temp) { 
    112                 prot = RGC_PROTOCOL_SERVER(temp->data); 
    113                 rgc_protocol_server_register_object(prot, obj, obj_name, class_name, requested_name); 
    114                 temp = g_list_next(temp); 
     113        while (temp) { 
     114                prot = RGC_PROTOCOL_SERVER (temp->data); 
     115                rgc_protocol_server_register_object (prot, obj, obj_name, class_name, requested_name); 
     116                temp = g_list_next (temp); 
    115117        } 
    116118} 
     
    146148 
    147149 
    148  
    149150void 
    150151rgc_connection_server_send_signal       (const gchar    *obj_name, 
     
    157158 
    158159        while (temp) { 
    159                 prot = RGC_PROTOCOL_SERVER(temp->data); 
    160                 rgc_protocol_server_send_signal(prot, obj_name, signal_name, 
     160                prot = RGC_PROTOCOL_SERVER (temp->data); 
     161                rgc_protocol_server_send_signal (prot, obj_name, signal_name, 
    161162                                                n_parameters, values); 
    162                 temp = g_list_next(temp); 
    163         } 
     163                temp = temp->next; 
     164        } 
     165} 
     166 
     167 
     168void 
     169rgc_connection_server_property_changed  (const gchar    *obj_name, 
     170                                         const gchar    *property_name, 
     171                                         GValue         *value) 
     172{ 
     173        GList *temp = protocol_list; 
     174        RgcProtocolServer *prot; 
     175 
     176        while (temp) { 
     177                prot = RGC_PROTOCOL_SERVER (temp->data); 
     178                rgc_protocol_server_property_changed (prot, obj_name, property_name, value); 
     179                temp = temp->next; 
     180        }        
    164181} 
    165182 
     
    178195                rgc_protocol_server_send_info(prot, obj_name, info_type, 
    179196                                              n_values, values); 
    180                 temp = g_list_next(temp); 
     197                temp = temp->next; 
    181198        } 
    182199} 
     
    233250                                         GValueArray    *array) 
    234251{ 
    235         GObject *obj = rgc_object_lookup_by_name(obj_name); 
     252        GObject *obj = rgc_object_get_from_name (obj_name); 
    236253        g_return_if_fail(obj); 
    237254        g_return_if_fail(G_IS_OBJECT(obj)); 
     
    266283                                         GValueArray    *values) 
    267284{ 
    268         GObject *obj = rgc_object_lookup_by_name (obj_name); 
    269         g_return_if_fail(obj);   
    270         g_return_if_fail(G_IS_OBJECT(obj)); 
     285        GObject *obj = rgc_object_get_from_name (obj_name); 
     286        g_return_if_fail (obj);  
     287        g_return_if_fail (G_IS_OBJECT (obj)); 
    271288 
    272289        guint i; 
    273290        for (i = 0; i < n_properties; i++) { 
    274                 g_object_set_property(obj, properties[i], g_value_array_get_nth(values, i)); 
    275                 g_debug("Set property \"%s\" on object \"%s\"\n", properties[i], obj_name); 
     291                g_object_set_property (obj, properties[i], g_value_array_get_nth (values, i)); 
     292                g_debug ("Set property \"%s\" on object \"%s\"\n", properties[i], obj_name); 
    276293        } 
    277294} 
     
    283300                                         const gchar    *about) 
    284301{ 
    285         g_return_if_fail(obj_name); 
    286         g_return_if_fail(query_type); 
    287         g_return_if_fail(about); 
     302        g_return_if_fail (obj_name); 
     303        g_return_if_fail (query_type); 
     304        g_return_if_fail (about); 
    288305 
    289306        if (strcmp(obj_name, "_RGC_INTERNAL") == 0) { 
     
    292309                        //rgc_info_server_info() // ????????????? 
    293310 
    294                         GValue *name = g_value_init_string ("SERVER_NAME!"); 
    295                         GValue *desc = g_value_init_string ("SERVER_DESC!"); 
     311                        GValue *name = g_new0 (GValue, 1); 
     312                        GValue *desc = g_new0 (GValue, 1); 
     313                        name = g_value_init (name, G_TYPE_STRING); 
     314                        desc = g_value_init (desc, G_TYPE_STRING); 
     315                        g_value_set_string (name, _rgc_server_name); 
     316                        g_value_set_string (desc, _rgc_server_desc); 
     317 
    296318                        GValueArray *arr = g_value_array_new (2); 
    297319                        arr = g_value_array_append (arr, name); 
     
    300322                        rgc_connection_server_send_info ("_RGC_INTERNAL", "QUERY_SERVER_INFO",  
    301323                                         arr->n_values, arr); 
     324 
     325                        g_value_unset (name); 
     326                        g_value_unset (desc); 
    302327                         
    303328 
  • trunk/rgc/src/connection/rgc_connection_server.h

    r285 r286  
    3030                                         guint          n_parameters, 
    3131                                         GValueArray    *values); 
     32 
     33void 
     34rgc_connection_server_property_changed  (const gchar    *obj_name, 
     35                                         const gchar    *property_name, 
     36                                         GValue         *value); 
    3237 
    3338void 
  • trunk/rgc/src/connection/rgc_protocol_server.c

    r285 r286  
    5252        klass->stop = NULL; 
    5353        klass->send_signal = NULL; 
     54        klass->property_changed = NULL; 
    5455        klass->register_object = NULL; 
    5556        klass->unregister_object = NULL; 
     
    99100{ 
    100101        RgcProtocolServerClass *klass = RGC_PROTOCOL_SERVER_GET_CLASS (prot); 
    101         g_return_if_fail(RGC_IS_PROTOCOL_SERVER(prot)); 
     102        g_return_if_fail (RGC_IS_PROTOCOL_SERVER (prot)); 
    102103         
    103104        if (klass->send_signal) 
     
    105106        else 
    106107                g_warning("class->send_signal undefined!"); 
     108} 
     109 
     110 
     111void 
     112rgc_protocol_server_property_changed    (RgcProtocolServer *prot, 
     113                                         const gchar    *obj_name, 
     114                                         const gchar    *property_name, 
     115                                         GValue         *value) 
     116{ 
     117        RgcProtocolServerClass *klass = RGC_PROTOCOL_SERVER_GET_CLASS (prot); 
     118        g_return_if_fail (RGC_IS_PROTOCOL_SERVER (prot)); 
     119         
     120        if (klass->property_changed) 
     121                (*klass->property_changed) (prot, obj_name, property_name, value); 
     122        else 
     123                g_warning("class->property_changed undefined!"); 
    107124} 
    108125 
  • trunk/rgc/src/connection/rgc_protocol_server.h

    r285 r286  
    1616                                         GValueArray    *values); 
    1717 
     18void 
     19rgc_protocol_server_property_changed    (RgcProtocolServer *prot, 
     20                                         const gchar    *obj_name, 
     21                                         const gchar    *property_name, 
     22                                         GValue         *value); 
    1823 
    1924void 
  • trunk/rgc/src/server/rgc_marshal.c

    r282 r286  
    22 
    33#include "../../include/server/rgc_marshal.h" 
     4#include "../../include/server/rgc_object.h" 
    45#include "rgc_signal.h" 
    56#include "rgc_object.h" 
  • trunk/rgc/src/server/rgc_object.c

    r285 r286  
    108108 
    109109 
     110static void 
     111rgc_object_notify_cb                    (GObject        *obj, 
     112                                         GParamSpec     *pspec, 
     113                                         gpointer       user_data) 
     114{ 
     115        const gchar *obj_name = rgc_object_get_name (obj); 
     116        g_return_if_fail (obj_name); 
     117 
     118        g_print ("rgc_object_notify_cb!\n"); 
     119 
     120        GValue *val = g_new0 (GValue, 1); 
     121        g_value_init (val, pspec->value_type); 
     122        g_object_get_property (obj, pspec->name, val); 
     123 
     124        rgc_connection_server_property_changed (obj_name, pspec->name, val); 
     125 
     126        g_value_unset (val); 
     127} 
     128 
     129 
    110130GObject * 
    111131rgc_object_new_from_type                (const gchar    *obj_name, 
     
    153173         
    154174        *real_name = proposed_name; 
     175 
     176        guint n_properties = 0, i; 
     177        GParamSpec **pspec = g_object_class_list_properties (G_OBJECT_GET_CLASS (obj), &n_properties); 
     178        for (i = 0; i < n_properties; i++) { 
     179                gchar *sig_det = g_strdup_printf ("notify::%s", pspec[i]->name); 
     180                g_print ("Registering notify callback for %s\n", sig_det); 
     181 
     182                // TODO: keep track of id 
     183                g_signal_connect_after (G_OBJECT (obj), sig_det, G_CALLBACK (rgc_object_notify_cb), NULL); 
     184                g_free (sig_det); 
     185        } 
     186        g_free (pspec); 
    155187         
    156188        return obj; 
     
    183215        g_return_val_if_fail (obj_name, FALSE); 
    184216 
    185         GObject *obj = rgc_object_lookup_by_name (obj_name); 
     217        GObject *obj = rgc_object_get_from_name (obj_name); 
    186218        g_return_val_if_fail (G_IS_OBJECT (obj), FALSE); 
    187219 
     
    198230        g_return_val_if_fail (obj_name, FALSE); 
    199231 
    200         GObject *obj = rgc_object_lookup_by_name (obj_name); 
     232        GObject *obj = rgc_object_get_from_name (obj_name); 
    201233        g_return_val_if_fail (G_IS_OBJECT (obj), FALSE); 
    202234 
     
    209241 
    210242GObject * 
    211 rgc_object_lookup_by_name               (const gchar    *obj_name) 
     243rgc_object_get_from_name                (const gchar    *obj_name) 
    212244{ 
    213245        g_return_val_if_fail (obj_name, NULL); 
  • trunk/rgc/src/server/rgc_object.h

    r283 r286  
    2626 
    2727 
    28 #define g_marshal_value_peek_object(x) rgc_object_lookup_by_name(g_marshal_value_peek_string(x)) 
     28#define g_marshal_value_peek_object(x) rgc_object_get_from_name(g_marshal_value_peek_string(x)) 
    2929 
    3030 
     
    6666 
    6767// private 
    68 GObject * 
    69 rgc_object_lookup_by_name               (const gchar    *obj_name); 
     68/*GObject * 
     69rgc_object_lookup_by_name               (const gchar    *obj_name);*/ 
    7070 
    7171// private 
  • trunk/rgc/src/server/rgc_server.c

    r283 r286  
    1616 
    1717 
    18 static gchar *_rgc_server_name = NULL; 
     18gchar *_rgc_server_name = NULL; 
     19gchar *_rgc_server_desc = NULL; 
    1920 
    2021 
     
    3031 
    3132        _rgc_server_name = g_strdup (server_name); 
     33        _rgc_server_desc = g_strdup_printf ("%s's server", server_name); 
    3234         
    3335        rgc_class_init (); 
  • trunk/rgc/test/Makefile.am

    r285 r286  
    77        perf_test \ 
    88        client_query \ 
    9         check_init 
     9        check_init \ 
     10        check_remote_obj \ 
     11        check_query 
    1012 
    1113 
     
    4749 
    4850 
    49 TESTS = check_init 
     51 
     52TESTS = check_init check_remote_obj check_query 
     53 
    5054 
    5155check_init_SOURCES = \ 
    5256        object1.c \ 
    5357        object1.h \ 
     58        check_shared.c \ 
     59        check_shared.h \ 
    5460        check_init.c 
    5561 
     
    6268 
    6369 
     70check_remote_obj_SOURCES = \ 
     71        object1.c \ 
     72        object1.h \ 
     73        check_shared.c \ 
     74        check_shared.h \ 
     75        check_remote_obj.c 
     76 
     77check_remote_obj_LDADD =  \ 
     78        ../src/librgc_server.la \ 
     79        ../src/librgc_client.la \ 
     80        @RGC_TEST_LIBS@ \ 
     81        @CHECK_LIBS@ \ 
     82        @GNET_LIBS@ 
     83         
     84check_query_SOURCES = \ 
     85        object1.c \ 
     86        object1.h \ 
     87        check_shared.c \ 
     88        check_shared.h \ 
     89        check_query.c 
     90 
     91check_query_LDADD =  \ 
     92        ../src/librgc_server.la \ 
     93        ../src/librgc_client.la \ 
     94        @RGC_TEST_LIBS@ \ 
     95        @CHECK_LIBS@ \ 
     96        @GNET_LIBS@ 
     97 
     98 
     99 
     100 
    64101EXTRA_DIST = \ 
    65102        run_test.py \ 
  • trunk/rgc/test/Makefile.in

    r285 r286  
    3434host_triplet = @host@ 
    3535noinst_PROGRAMS = new_server$(EXEEXT) new_client_async$(EXEEXT) \ 
    36         perf_test$(EXEEXT) client_query$(EXEEXT) check_init$(EXEEXT) 
    37 TESTS = check_init$(EXEEXT) 
     36        perf_test$(EXEEXT) client_query$(EXEEXT) check_init$(EXEEXT) \ 
     37        check_remote_obj$(EXEEXT) check_query$(EXEEXT) 
     38TESTS = check_init$(EXEEXT) check_remote_obj$(EXEEXT) \ 
     39        check_query$(EXEEXT) 
    3840subdir = test 
    3941DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 
     
    5557CONFIG_CLEAN_FILES = 
    5658PROGRAMS = $(noinst_PROGRAMS) 
    57 am_check_init_OBJECTS = object1.$(OBJEXT) check_init.$(OBJEXT) 
     59am_check_init_OBJECTS = object1.$(OBJEXT) check_shared.$(OBJEXT) \ 
     60        check_init.$(OBJEXT) 
    5861check_init_OBJECTS = $(am_check_init_OBJECTS) 
    5962check_init_DEPENDENCIES = ../src/librgc_server.la \ 
     63        ../src/librgc_client.la 
     64am_check_query_OBJECTS = object1.$(OBJEXT) check_shared.$(OBJEXT) \ 
     65        check_query.$(OBJEXT) 
     66check_query_OBJECTS = $(am_check_query_OBJECTS) 
     67check_query_DEPENDENCIES = ../src/librgc_server.la \ 
     68        ../src/librgc_client.la 
     69am_check_remote_obj_OBJECTS = object1.$(OBJEXT) check_shared.$(OBJEXT) \ 
     70        check_remote_obj.$(OBJEXT) 
     71check_remote_obj_OBJECTS = $(am_check_remote_obj_OBJECTS) 
     72check_remote_obj_DEPENDENCIES = ../src/librgc_server.la \ 
    6073        ../src/librgc_client.la 
    6174am_client_query_OBJECTS = client_query.$(OBJEXT) 
     
    8396        --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 
    8497        $(LDFLAGS) -o $@ 
    85 SOURCES = $(check_init_SOURCES) $(client_query_SOURCES) \ 
     98SOURCES = $(check_init_SOURCES) $(check_query_SOURCES) \ 
     99        $(check_remote_obj_SOURCES) $(client_query_SOURCES) \ 
    86100        $(new_client_async_SOURCES) $(new_server_SOURCES) \ 
    87101        $(perf_test_SOURCES) 
    88 DIST_SOURCES = $(check_init_SOURCES) $(client_query_SOURCES) \ 
     102DIST_SOURCES = $(check_init_SOURCES) $(check_query_SOURCES) \ 
     103        $(check_remote_obj_SOURCES) $(client_query_SOURCES) \ 
    89104        $(new_client_async_SOURCES) $(new_server_SOURCES) \ 
    90105        $(perf_test_SOURCES) 
     
    291306        object1.c \ 
    292307        object1.h \ 
     308        check_shared.c \ 
     309        check_shared.h \ 
    293310        check_init.c 
    294311 
    295312check_init_LDADD = \ 
     313        ../src/librgc_server.la \ 
     314        ../src/librgc_client.la \ 
     315        @RGC_TEST_LIBS@ \ 
     316        @CHECK_LIBS@ \ 
     317        @GNET_LIBS@ 
     318 
     319check_remote_obj_SOURCES = \ 
     320        object1.c \ 
     321        object1.h \ 
     322        check_shared.c \ 
     323        check_shared.h \ 
     324        check_remote_obj.c 
     325 
     326check_remote_obj_LDADD = \ 
     327        ../src/librgc_server.la \ 
     328        ../src/librgc_client.la \ 
     329        @RGC_TEST_LIBS@ \ 
     330        @CHECK_LIBS@ \ 
     331        @GNET_LIBS@ 
     332 
     333check_query_SOURCES = \ 
     334        object1.c \ 
     335        object1.h \ 
     336        check_shared.c \ 
     337        check_shared.h \ 
     338        check_query.c 
     339 
     340check_query_LDADD = \ 
    296341        ../src/librgc_server.la \ 
    297342        ../src/librgc_client.la \ 
     
    349394        @rm -f check_init$(EXEEXT) 
    350395        $(LINK) $(check_init_OBJECTS) $(check_init_LDADD) $(LIBS) 
     396check_query$(EXEEXT): $(check_query_OBJECTS) $(check_query_DEPENDENCIES)  
     397        @rm -f check_query$(EXEEXT) 
     398        $(LINK) $(check_query_OBJECTS) $(check_query_LDADD) $(LIBS) 
     399check_remote_obj$(EXEEXT): $(check_remote_obj_OBJECTS) $(check_remote_obj_DEPENDENCIES)  
     400        @rm -f check_remote_obj$(EXEEXT) 
     401        $(LINK) $(check_remote_obj_OBJECTS) $(check_remote_obj_LDADD) $(LIBS) 
    351402client_query$(EXEEXT): $(client_query_OBJECTS) $(client_query_DEPENDENCIES)  
    352403        @rm -f client_query$(EXEEXT) 
     
    369420 
    370421@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_init.Po@am__quote@ 
     422@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_query.Po@am__quote@ 
     423@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_remote_obj.Po@am__quote@ 
     424@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_shared.Po@am__quote@ 
    371425@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/client_query.Po@am__quote@ 
    372426@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/new_client_async.Po@am__quote@ 
  • trunk/rgc/test/check_init.c

    r283 r286  
    22#include <glib-object.h> 
    33 
    4 #include <gnet.h> 
     4#include <stdlib.h> 
     5#include <check.h> 
    56 
    67#include "../include/rgc_server.h" 
     
    89 
    910#include "object1.h" 
     11#include "check_shared.h" 
    1012 
    11 #include <stdlib.h> 
    12 #include <check.h> 
    13  
    14 GMainLoop *server_main_loop; 
    15 GThread *server_thread; 
    16  
    17 #define N_OBJECTS 50 
    18 guint obj_n = 0; 
    19  
    20  
    21 gboolean 
    22 clean_out                               (gpointer       data) 
    23 { 
    24         GMainLoop *main_loop = (GMainLoop*) data; 
    25         g_print ("exiting main loop...\n"); 
    26         g_main_loop_quit (main_loop); 
    27          
    28         return FALSE; 
    29 } 
    30  
    31  
    32 gpointer 
    33 server_start_thread                     (gpointer       data) 
    34 { 
    35         server_main_loop = g_main_loop_new (NULL, FALSE); 
    36         g_main_loop_run (server_main_loop); 
    37         g_print ("Server main loop terminated\n"); 
    38  
    39         return NULL; 
    40 } 
    41  
    42 void 
    43 server_init                             (void) 
    44 { 
    45         GError *err = NULL; 
    46  
    47         g_print ("1\n"); 
    48         gboolean server_init = rgc_server_init ("test_server"); 
    49         g_print ("+++ %d %d +++\n", server_init, TRUE); 
    50         g_print ("2\n"); 
    51         fail_unless (server_init != FALSE); 
    52  
    53         RgcProtocolServer *prot_rbp = rgc_protocol_rbp_server_new (7784); 
    54         fail_unless (prot_rbp != NULL); 
    55  
    56         rgc_connection_server_add_protocol (prot_rbp); 
    57          
    58         gboolean obj1_init = object1_class_register (); 
    59         fail_unless (obj1_init != FALSE); 
    60  
    61         server_thread = g_thread_create (server_start_thread, NULL, TRUE, &err); 
    62  
    63 } 
    64  
    65  
    66 void 
    67 server_shutdown                         (void) 
    68 { 
    69         g_print ("g_main_loop_quit\n"); 
    70         g_main_loop_quit (server_main_loop); 
    71         g_print ("rgc_server_shutdown\n"); 
    72         rgc_server_shutdown (); 
    73 } 
    74  
    75  
    76 void 
    77 client_init                             (void) 
    78 { 
    79         gboolean client_init = rgc_client_init (); 
    80         fail_unless (client_init != FALSE); 
    81  
    82         RgcProtocolClient *prot_rbp = rgc_protocol_rbp_client_new ("localhost", 7784); 
    83         fail_unless (prot_rbp != NULL); 
    84  
    85         rgc_connection_client_set_protocol (prot_rbp); 
    86 } 
    87  
    88  
    89 void 
    90 client_shutdown                         (void) 
    91 { 
    92         rgc_client_shutdown (); 
    93 } 
    94  
    95  
    96 void 
    97 obj_cb                                  (RgcRemoteObject        *obj, 
    98                                          gpointer               data) 
    99 { 
    100         obj_n++; 
    101         if (obj_n == N_OBJECTS) { 
    102                 g_print ("Got it!\n"); 
    103                 server_shutdown (); 
    104         } 
    105 } 
    106  
    107  
    108 void 
    109 client_create_objs                      (void) 
    110 { 
    111         g_print("\nLet's create %d objects...\n\n", N_OBJECTS); 
    112         guint i; 
    113         for (i = 0; i < N_OBJECTS; i++) { 
    114                 rgc_remote_object_new_async (obj_cb, NULL, "Object1", "my_object", NULL); 
    115         } 
    116 } 
    11713 
    11814 
     
    12824 
    12925 
    130 START_TEST (test_create_objects) 
    131 { 
    132         g_print ("********* starting test 2 *************\n"); 
    133  
    134         server_init (); 
    135         client_init (); 
    136  
    137         client_create_objs (); 
    138  
    139         g_thread_join (server_thread); 
    140  
    141         client_shutdown (); 
    142         //server_shutdown ();   // called by obj_cb 
    143 } 
    144 END_TEST 
    145  
    146  
    147  
    14826Suite * 
    14927check_init_suite (void) 
     
    15432        TCase *tc_core = tcase_create ("Basic"); 
    15533        tcase_add_test (tc_core, test_init); 
    156         tcase_add_test (tc_core, test_create_objects); 
    157         g_print ("%p\n", test_create_objects); 
     34        /*tcase_add_test (tc_core, test_create_objects);*/ 
    15835        tcase_set_timeout (tc_core, 5); 
    15936        suite_add_tcase (s, tc_core); 
     
    16138        return s; 
    16239} 
    163  
    16440 
    16541 
  • trunk/rgc/test/object1.c

    r283 r286  
    195195        g_assert (IS_OBJECT1 (obj)); 
    196196        g_return_if_fail ((gain > 0) && (gain < 10)); 
     197        obj->gain = gain; 
    197198//      g_print ("%s: called \"set_gain\", %f\n", G_OBJ_NAME(obj), gain); 
    198199} 
  • trunk/rgc/tools/rgc_genmarshal.py

    r283 r286  
    132132        print "" 
    133133        print "#include \"../../include/server/rgc_marshal.h\"" 
     134        print "#include \"../../include/server/rgc_object.h\"" 
    134135        print "#include \"rgc_signal.h\"" 
    135136        print "#include \"rgc_object.h\""