1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
#ifndef PERSISTENCE_CLIENT_LIBRARY_DBUS_CMD_H_
#define PERSISTENCE_CLIENT_LIBRARY_DBUS_CMD_H_
/******************************************************************************
* Project Persistency
* (c) copyright 2012
* Company XS Embedded GmbH
*****************************************************************************/
/******************************************************************************
* This Source Code Form is subject to the terms of the
* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed
* with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
******************************************************************************/
/**
* @file persistence_client_library_dbus_cmd.h
* @ingroup Persistence client library
* @author Ingo Huerner
* @brief Header of the persistence client library dbus command functions.
* @see
*/
#include <dbus/dbus.h>
#include "persistence_client_library_dbus_service.h"
/**
* @brief process a shutdown message (close all open files, open databases, ...
*
* @param complete The mode: Shutdown_Partial=0; Shutdown_Full=1
*/
void process_prepare_shutdown(int complete);
/**
* @brief send notification signal
*
* @param conn the dbus connection
* @param notifyLdbid the ldbid to notify on
* @param notifyUserNo the user number to notify on
* @param notifySeatNo the seat to notify on
* @param notifyReason the notify reason to notify on
* @param notifyKey the notification key
*/
void process_send_notification_signal(DBusConnection* conn, unsigned int notifyLdbid, unsigned int notifyUserNo,
unsigned int notifySeatNo, unsigned int notifyReason, const char* notifyKey);
/**
* @brief register for notification signal
*
* @param conn the dbus connection
* @param notifyLdbid the ldbid to notify on
* @param notifyUserNo the user number to notify on
* @param notifySeatNo the seat to notify on
* @param notifyPolicy the notify policy to notify on
* @param notifyKey the notification key
*/
void process_reg_notification_signal(DBusConnection* conn, unsigned int notifyLdbid, unsigned int notifyUserNo,
unsigned int notifySeatNo, unsigned int notifyPolicy, const char* notifyKey);
/**
* @brief send lifecycle request
*
* @param conn the dbus connection
* @param requestId the request id
* @param status the status
*/
void process_send_lifecycle_request(DBusConnection* conn, unsigned int requestId, unsigned int status);
/**
* @brief send lifecycle register message
*
* @param conn the dbus connection
* @param regType the request type
* @param shutdownMode the shutdown mode to register on
*/
void process_send_lifecycle_register(DBusConnection* conn, int regType, int shutdownMode);
/**
* @brief block persistence access and write data back to device
*
* @param requestID the requestID
* @param status the status
*/
void process_block_and_write_data_back(unsigned int requestID, unsigned int status);
/**
* @brief process a request of the persistence admin service
*
* @param conn the dbus connection
* @param requestID the requestID
* @param status the status
*/
void process_send_pas_request(DBusConnection* conn, unsigned int requestID, int status);
/**
* @brief process a request of the persistence admin service
*
* @param conn the dbus connection
* @param regType the registration type (1 for register; 0 for unregister)
* @param notificationFlag flag the notificatin flag
*/
void process_send_pas_register(DBusConnection* conn, int regType, int notificationFlag);
#endif /* PERSISTENCE_CLIENT_LIBRARY_DBUS_CMD_H_ */
|