summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-02-11fixup: update the kdbus branch for api change from ↵kdbus-1.8.16kdbus-devLubomir Rintel1-4/+2
24c590703ca47eb71ddef453de43126b90954567
2015-02-11fixup: update the kdbus branch for api change from ↵Lubomir Rintel1-2/+1
ecd4262cbfd5fb130b805686e8ceb1f0a4cbd52f
2015-02-11rename package nameSemun Lee1-3/+3
2015-02-11[fix] Autogen config fix for abstract socket.Lukasz Stempien1-1/+1
When --enable-abstract-socket was set to 'yes' autogen generated code without abstract support (in config.h flag HAVE_ABSTRACT_SOCKETS was undefined). Change-Id: I93c79f1c2c68dcb83a2b9baac3d2c2bca9a607b7 Signed-off-by: Lukasz Stempien <l.stempien@samsung.com>
2015-02-11[lib-fix] moved dbus_connection_get_unix_user from daemon to librarySangyoon Jang7-303/+259
This function must be declared at library code even if enable_kdbus_transport is set (same as dbus_connection_get_unix_process_id)
2015-02-11Add kdbus-switch script and modified service filesSangyoon Jang6-3/+64
Add optional flag --enable-kdbus-for-sbb allowing to compile with or without sbb support Change-Id: I3e060783b51a6b220c8671bf96c54315842666fc
2015-02-11[lib-fix] Fixed return value of kdbus_write_msgSangyoon Jang1-10/+10
Change-Id: Ia3a45a6a79b40789293603982cee6e3023a2f450
2015-02-11[Test][Daemon] Fixed memleaksMichal Eljasiewicz1-1/+13
Change-Id: I672421944937773096771fc6193e267b48977245 Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
2015-02-11[lib-fix] Some minor fixes in function kdbus_write_msg.Daniel Kowalski1-6/+26
Signed-off-by: Daniel Kowalski <d.kowalski@samsung.com>
2015-02-11[lib-fix] Add checking if strtoull returned error.Daniel Kowalski1-2/+10
Signed-off-by: Daniel Kowalski <d.kowalski@samsung.com>
2015-02-11[Test] Fix for bus test - NameOwnerChanged not received.Michal Eljasiewicz1-6/+2
Change-Id: Ifeee08c1db4a45ce7830f6f8528391e14c9aa8eb Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
2015-02-11[lib-fix] If error -1 should be returned by kdbus_decode_msgRadoslaw Pajak1-1/+2
Change-Id: I189e11f0d413569f0e7a8b43821f9f3836968fe9 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[tests] Printed info extended.Radoslaw Pajak2-2/+2
Change-Id: Ia2e3de462193e71dc7a58d665eefe771d94a4af5 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] Changed the way of make bus address when the address is not givenSangyoon Jang3-57/+83
When the autolaunch enabled (when using dbus-launch), the bus will be addressed by the member 'listen' of config file It has to decide the autolaunch address at run-time instead of compile-time
2015-02-11[lib-fix] Fixed the variable-length array to fixed-lengthSangyoon Jang1-1/+1
2015-02-11[lib-fix] Fixed message handlingSangyoon Jang1-3/+3
the message which has only header(body size is 0) doesn't cause io_error now (such as KDBUS_ITEM_REPLY_DEAD has 0 size body) Change-Id: I7f0cece23c6aa88761dba979f82e8e33622bf600
2015-02-11[daemon-fix] Send SIGUSR1 signal to systemd for reconnecting toSangyoon Jang1-0/+12
kdbus bus daemon when starting system bus on boot Change-Id: Iaf9e64eec65bdbad4b737969481d80acd447c63e
2015-02-11[daemon-fix] fixed matching for kernel broadcastsRadoslaw Pajak1-1/+1
Change-Id: I463fae27961c2ff3ee6efdcb2df938120a57418d Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[rename] renamed kdbus related macrosRadoslaw Pajak3-35/+35
KDBUS_PART_HEADER_SIZE renamed to KDBUS_ITEM_HEADER_SIZE KDBUS_PART_SIZE renamed to KDBUS_ITEM_SIZE to become not confusing and to fit kdbus naming convention changes. Change-Id: I9c2b607185831f9cd317274dc3240733b1498c74 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[merge] merge with kdbus changes from upstreamRadoslaw Pajak2-98/+51
Merge with kdbus commit 03b1706a from 17.12.2013 Bus creating was changed because of upstream kdbus changes. Change-Id: I559c9a5d051e6aa9792e6b355a0369288d559b87 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] Fixed getting connection info from kdbusRadoslaw Pajak1-3/+3
Change-Id: Iacf7e52e799410b6ba4a939678b5880ebadf1667 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] Fixed nice exiting on error during startupRadoslaw Pajak1-1/+1
Change-Id: Icb07e57ba09464f14d0bb126823d8c9846caccf8 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] fixed transaction freeing for daemon name and startersRadoslaw Pajak1-5/+17
Change-Id: I795ea4d76b80a10fdd2f1aa2a912857472a924ee Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] Fixed sending daemon match rules for kdbus broadcastsRadoslaw Pajak2-6/+4
Change-Id: I4871ee626c71a26dac6437d05b5b543a6cf043de Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11Changes in kdbus transport arising from changing of kdus.hLukasz Stempien2-38/+48
kdbus.h have changed in effect of merge remote-tracking branch 'github/master' into upstream_merge in kdbus project. (merged till Mon 16 Dec 2013 05:19:52 PM CET, SHA: af0e3d43309732095763a4b49a937f41a68c7184) Change-Id: Iecafd516a1aedc98d02f16fa4667b3aebba11474 Signed-off-by: Lukasz Stempien <l.stempien@samsung.com>
2015-02-11[Daemon fix] registering for ID change needs id matchMichal Eljasiewicz2-2/+3
Change-Id: Ie9727022a01e512ed71a7885252aea8e9056880d Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
2015-02-11[daemon-fix] Name listing fixedRadoslaw Pajak1-1/+1
Fixed listing names on the bus. Apply together with kdbus patch: 13f26b3 Reversed modification for distinguishing names in name_list cmd Change-Id: Ib598b0443faf9ba41a62d08d4dad031952d1e02f Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] Fixed bus creation - flags passed to kdbusRadoslaw Pajak2-2/+2
KDBUS_MAKE_POLICY_OPEN set as default behaviour. Change-Id: I088758df1f93411dc1154131129e2b3f25526a86 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[deamon-fix] Fix for FoxP in make_kdbus_busLukasz Stempien1-3/+14
Fix was needed due to dbus-daemon crashes caused by use of sprintf to item->str (a flexible array in union). Change-Id: Idc02f4466dcebfdf41939923cd004f06dac93191 Signed-off-by: Lukasz Stempien <l.stempien@samsung.com>
2015-02-11[daemon-fix] releasing name fixedRadoslaw Pajak1-1/+1
Change-Id: I2e3af7cb6338d658a34f818e4b8fa27e7d979f98 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-fix] fixed querying about name informationRadoslaw Pajak1-4/+4
Change-Id: Ife6538b1f72d601da93bff83d361c6d10a02bc0e Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[Daemon-fix][Upstream merge] make_kdbus_bus fixedLukasz Stempien1-52/+67
Fix was needed due to struct kdbus_cmd_bus_make change Signed-off-by: Lukasz Stempien <l.stempien@samsung.com> Change-Id: I860ec8f976433dc6d30de7c1fad38b8d0c04ad96
2015-02-11[daemon] Sending unique names added in reply to ListNames methodRadoslaw Pajak1-5/+14
Change-Id: I48a5062af9bd5f848c846aaa140902d9fafce324 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[Makefile] Small makefile fix for GBS build errorMichal Eljasiewicz1-0/+3
Change-Id: I2a51d66aa974c7705aa281ec7198e3f556ff4bba Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
2015-02-11ListNames and ListQueuedOwners updated to work with new kdbusRadoslaw Pajak2-65/+54
org.freedesktop.DBus methods ListNames and ListQueuedOwners updated to work with upstream-merged kdbus. KDBUS_CMD_NAME_LIST_QUEUED ioctl had to be readded, because kdbus native listing queued owners through KDBUS_CMD_NAME_LIST with KDBUS_NAME_LIST_QUEUED flag has results different than DBus api defines. Kdbus version lists all queued owners on the bus, while KDBUS_NAME_LIST_QUEUED complies with DBus because it sends queued owners only for given well-known name. Change-Id: I43a42ef9db3c127bd34016e206ddbb13591d2a70 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[Daemon-fix][Upstream merge] Small fixes in daemon startingMichal Eljasiewicz3-2/+3
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com> Change-Id: Id0527a832cbaabda89b7e0f7a328ef0cde03aef5
2015-02-11Kdbus merge - Flag KDBUS_NAME_STARTER renamedRadoslaw Pajak4-6/+6
Flag KDBUS_NAME_STARTER renamed to KDBUS_NAME_STARTER_NAME in kdbus. Change-Id: Ia74ff0fdb0a042c5b8aa585c1c91062cfe98e4f0 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[Upstream merge] update of libdbus after kdbus upstream mergeMichal Eljasiewicz3-230/+446
Change-Id: I0d1006ec80d4733915d94a0728f44258dd655810 Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
2015-02-11Kdbus upstream merge in progressRadoslaw Pajak3-3/+4
Fixed segfault when ListNames is called, but the method is still not working propoerly (returns nothing). Change-Id: I1c55b8efb99ba540e6547c0f0b2d5f713d385f98 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11Kdbus upstream merge in progressRadoslaw Pajak8-119/+169
Dbus modifications arised from kdbus upstream changes. Not fully functional! Not working: - org.freedesktop.DBus methods ListNames and ListQueuedOwners - stating services Change-Id: I9720c75d7b51b3343fb9df924cd9bf24f4c409a0 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11Changes in kdbus transport arising from changing of kdus.hLukasz Stempien3-234/+449
- transport part refactored - daemon part untuched needs to be changed kdbus.h have changed in effect of merge remote-tracking branch 'github/master' into upstream_merge in kdbus project. (merged till 05 Dec 2013 04:31:06 AM CET, SHA: 1ca937b9c14784dc649870c702942af24b7dfc71) *** *** *** Do not use in other purpose than development. Code will not compile *** *** *** Change-Id: I476ef68bc69079e2ed47fd6ac7d7f2648a0cbdd9 Signed-off-by: Lukasz Stempien <l.stempien@samsung.com>
2015-02-11[daemon-fix] Fixed kdbus bus address recognitionRadoslaw Pajak2-3/+11
Change-Id: Icf75319d831a315f4e739fb9ac094b4cd95faa88 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[Makefile] Depend tools on this dbus headers, not system oneMichal Eljasiewicz2-4/+4
Change-Id: I8fda8301300bca521a01d851baa1221cc4bc9483
2015-02-11[daemon-fix] missing #ifdef ENABLE_KDBUS_TRANSPORT addedRadoslaw Pajak1-0/+2
Change-Id: I292059b2c2bf67ecd1d180fb686e2b748bf97e78 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[Makefile] Added samsung_tools building from root dirMichal Eljasiewicz2-7/+13
Change-Id: I9bf0d78a069052827334a5c03d1ca7e232f8fa5c
2015-02-11[lib-doc] comments and defs for doxygen addedRadoslaw Pajak1-2/+24
Change-Id: Icf1389745460dccc3a04fa719cb155dc5421fc91 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[daemon-dev] Added option to create bus with sbb offsetRadoslaw Pajak4-14/+41
When address passed to daemon is kdbus:sbb than bus is created with KDBUS_MAKE_SBB_OFFSET flag, which adds offset to unique ids given by bus to all clients including daemon. Change-Id: Ib31854b1bdfeb9a4b117cb4b050b4e5c455e8b73 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[lib-opt] library optimalization and clean-upRadoslaw Pajak2-170/+95
Library optimalization, cleanups, small corrections, renames. Change-Id: Ie48465a2d7bf30c916bebeeee2e31c22255477cc Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[lib] CommentsRadoslaw Pajak1-101/+154
- Comments added adn corrected. - Some renames of local variables to make them not confusing. Change-Id: I72939321576d4c35a2f7805c2717fa9f96c307b4 Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>
2015-02-11[lib-opt] library optimization and clean-upRadoslaw Pajak1-26/+32
- removed unneeded operations - max_bytes_(read/written)_per_iteration used properly Change-Id: I537800306f5a6a17406ee211e3858f98471d1f6a Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com>