diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-10-22 21:26:00 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-10-22 21:26:00 +0200 |
commit | b1800fd11ab5297585e0c2beb12b7fc058430bc1 (patch) | |
tree | 9c94f0092c03c8def5a2de3eafa8a3ea7876edd1 /libayatana-greeter-session-broadcast | |
parent | d740b19a6c28d0bdddf828ebac6ed3f131409bfd (diff) | |
download | ayatana-greeter-session-broadcast-b1800fd11ab5297585e0c2beb12b7fc058430bc1.tar.gz ayatana-greeter-session-broadcast-b1800fd11ab5297585e0c2beb12b7fc058430bc1.tar.bz2 ayatana-greeter-session-broadcast-b1800fd11ab5297585e0c2beb12b7fc058430bc1.zip |
Fork from unity-greeter-session-broadcast.
Diffstat (limited to 'libayatana-greeter-session-broadcast')
4 files changed, 165 insertions, 0 deletions
diff --git a/libayatana-greeter-session-broadcast/CMakeLists.txt b/libayatana-greeter-session-broadcast/CMakeLists.txt new file mode 100644 index 0000000..4ecaff7 --- /dev/null +++ b/libayatana-greeter-session-broadcast/CMakeLists.txt @@ -0,0 +1,95 @@ + +########################### +# Version Information +########################### + +set(API_VERSION 1) +set(ABI_VERSION 1) + +########################### +# Generated Lib +########################### + +set(GENERATED_HEADERS +service-iface.h +) + +set(GENERATED_SOURCES +service-iface.c +) + +add_gdbus_codegen( +OUTFILES GENERATED_SOURCES +NAME service-iface +PREFIX org.ayatana.Desktop.Greeter.Broadcast. +NAMESPACE _ServiceIface +SERVICE_XML ${CMAKE_CURRENT_SOURCE_DIR}/../data/org.ayatana.Desktop.Greeter.Broadcast.xml +) + +add_library(generated STATIC ${GENERATED_SOURCES}) + +target_link_libraries(generated +${GLIB2_LIBRARIES} +${GOBJECT2_LIBRARIES} +${GIO2_LIBRARIES} +) + +########################### +# Lib +########################### + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden") + +set(BROADCAST_HEADERS +ayatana-greeter-session-broadcast.h +) + +set(BROADCAST_SOURCES +ayatana-greeter-session-broadcast.c +) + +add_library(broadcast SHARED ${BROADCAST_SOURCES}) + +set_target_properties(broadcast PROPERTIES + VERSION ${API_VERSION}.0.0 + SOVERSION ${ABI_VERSION} + OUTPUT_NAME "ayatana-greeter-session-broadcast" +) + +target_link_libraries(broadcast +generated +${GLIB2_LIBRARIES} +${GOBJECT2_LIBRARIES} +-Wl,--no-undefined +) + +########################### +# Pkg Config +########################### + +set(BROADCAST_PC "ayatana-greeter-session-broadcast-${API_VERSION}.pc") +set(apiversion "${API_VERSION}") +set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}") +set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}") +set(VERSION "${ABI_VERSION}") + +configure_file("ayatana-greeter-session-broadcast.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/${BROADCAST_PC}" @ONLY) + +########################### +# Installation +########################### + +install( + FILES ${BROADCAST_HEADERS} + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/libayatana-greeter-session-broadcast-${API_VERSION}" +) + +install( + FILES "${CMAKE_CURRENT_BINARY_DIR}/${BROADCAST_PC}" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" +) + +install( + TARGETS broadcast + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} +) diff --git a/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.c b/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.c new file mode 100644 index 0000000..f603efc --- /dev/null +++ b/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.c @@ -0,0 +1,24 @@ +/** + * Copyright (C) 2013 Canonical, Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License version 3, as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, + * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include "ayatana-greeter-session-broadcast.h" + +void +ayatana_session_greeter_broadcast_request_app_start (const gchar * username, const gchar * app_id) +{ + return; +} diff --git a/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.h b/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.h new file mode 100644 index 0000000..0f00e27 --- /dev/null +++ b/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.h @@ -0,0 +1,35 @@ +/** + * Copyright (C) 2013 Canonical, Ltd. + * + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License version 3, as published by + * the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, + * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#include <glib.h> + +#ifndef __AYATANA_GREETER_SESSION_BROADCAST_H__ +#define __AYATANA_GREETER_SESSION_BROADCAST_H__ 1 + +#pragma GCC visibility push(default) + +G_BEGIN_DECLS + +void +ayatana_session_greeter_broadcast_request_app_start (const gchar * username, + const gchar * app_id); + +G_END_DECLS + +#pragma GCC visibility pop + +#endif /* __AYATANA_GREETER_SESSION_BROADCAST_H__ */ diff --git a/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.pc.in b/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.pc.in new file mode 100644 index 0000000..3932a85 --- /dev/null +++ b/libayatana-greeter-session-broadcast/ayatana-greeter-session-broadcast.pc.in @@ -0,0 +1,11 @@ +libdir=@libdir@ +includedir=@includedir@ + +Cflags: -I${includedir}/libayatana-greeter-session-broadcast-@apiversion@ +Requires: glib-2.0 gio-2.0 +Libs: -L${libdir} -layatana-greeter-session-broadcast + +Name: libayatana-greeter-session-broadcast +Description: Library to let a LightDM greeter request a session to do something. +Version: @VERSION@ + |