diff options
author | Pierre Langlois <pierre.langlois@arm.com> | 2016-03-03 17:36:25 +0000 |
---|---|---|
committer | Pierre Langlois <pierre.langlois@arm.com> | 2016-05-13 13:44:27 +0100 |
commit | 75c67dfc78a0d0af35452f077a6893c28916c61a (patch) | |
tree | d59b50fd3201efeca7682cae4367014208d3b274 | |
parent | 999315a51efd81ab42ae5a81ddb9d3719732252a (diff) | |
download | kdbinder-75c67dfc78a0d0af35452f077a6893c28916c61a.tar.gz |
libkdbinder: Add a KDBUS version of the service manager
KDBinder does not need a service manager in the sence that Binder does.
However, we do need a bus called `services` to be created. This commits
adds a `kdbus_servicemanager` command that simply creates a bus.
-rw-r--r-- | cmds/Android.mk | 23 | ||||
-rw-r--r-- | cmds/kdbus_servicemanager.cpp | 9 |
2 files changed, 32 insertions, 0 deletions
diff --git a/cmds/Android.mk b/cmds/Android.mk new file mode 100644 index 0000000..ed761e5 --- /dev/null +++ b/cmds/Android.mk @@ -0,0 +1,23 @@ +# Copyright (C) 2016 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_MODULE := kdbus_servicemanager +LOCAL_SRC_FILES := kdbus_servicemanager.cpp +LOCAL_CFLAGS += -Werror -std=c++14 +LOCAL_C_INCLUDES += frameworks/kdbinder/include/kdbinder +LOCAL_SHARED_LIBRARIES := libkdbinder +include $(BUILD_EXECUTABLE) diff --git a/cmds/kdbus_servicemanager.cpp b/cmds/kdbus_servicemanager.cpp new file mode 100644 index 0000000..6633381 --- /dev/null +++ b/cmds/kdbus_servicemanager.cpp @@ -0,0 +1,9 @@ +#include <kdbus/bus.h> + +using Bus = android::kdbus::Bus; + +int main() { + auto bus = Bus::make("services"); + + while(1); +} |