}
if (ieu->broadcast)
- event_broadcast_id(ieu->id);
+ gdbus_signal_emit(NULL, DEVICED_PATH_EVENT, DEVICED_INTERFACE_EVENT,
+ DEVICED_SIGNAL_EVENT_ID, g_variant_new("(i)", ieu->id));
if (ieu->wakelock_duration > 0)
syscommon_resman_set_resource_attr_uint64_2(
}
if (ieu->broadcast)
- event_broadcast_id(ieu->id);
+ gdbus_signal_emit(NULL, DEVICED_PATH_EVENT, DEVICED_INTERFACE_EVENT,
+ DEVICED_SIGNAL_EVENT_ID, g_variant_new("(i)", ieu->id));
if (ieu->wakelock_duration > 0)
syscommon_resman_set_resource_attr_uint64_2(
#include <eventsystem.h>
#include <hal/device/hal-battery.h>
#include <sys/stat.h>
+#include <libsyscommon/libgdbus.h>
#include <libsyscommon/ini-parser.h>
#include <libsyscommon/resource-manager.h>
#include <system/syscommon-plugin-deviced-common-interface.h>
#include "shared/eventsystem.h"
#include "shared/plugin.h"
#include "shared/apps.h"
-#include "shared/event.h"
#include "core.h"
#include "display-lock.h"
#include "display-ops.h"
if (event_handlers[i]->broadcast)
- event_broadcast_id(event_handlers[i]->id);
+ gdbus_signal_emit(NULL,
+ DEVICED_PATH_EVENT,
+ DEVICED_INTERFACE_EVENT,
+ DEVICED_SIGNAL_EVENT_ID,
+ g_variant_new("(i)", event_handlers[i]->id));
+
}
}
}
+++ /dev/null
-/*
- * deviced
- *
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
- *
- * 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.
- */
-
-#ifndef __DD_EVENT_H__
-#define __DD_EVENT_H__
-
-#include <libsyscommon/libgdbus.h>
-
-#define DEVICED_PATH_EVENT "/Org/Tizen/System/DeviceD/Event"
-#define DEVICED_INTERFACE_EVENT "org.tizen.system.deviced.Event"
-#define DEVICED_SIGNAME_ID "Id"
-
-static inline void event_broadcast_id(int id)
-{
- _I("Broadcast eventid=%d", id);
-
- gdbus_signal_emit(NULL,
- DEVICED_PATH_EVENT,
- DEVICED_INTERFACE_EVENT,
- DEVICED_SIGNAME_ID,
- g_variant_new("(i)", id));
-}
-
-#endif //__DD_EVENT_H__