summaryrefslogtreecommitdiff
path: root/NodeStateAccessStub/NodeStateAccess.c
blob: 7e1fbc05a070d3d64c2240848642dbf27f3a3f0b (plain)
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/**********************************************************************************************************************
*
* Copyright (C) 2012 Continental Automotive Systems, Inc.
*
* Author: Jean-Pierre.Bogler@continental-corporation.com
*
* Interface between NodeStateManager and IPC
*
* This source file is a part of the NodeStateAccess library (NSMA) stub.
* The architecture requires that the NodeStateManager (NSM) is independent
* from the D-Bus binding and generated code. The interface functions of the
* library have to be implemented according to their description.
*
* 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/.
*
* Date       Author             Reason
* 24.10.2012 Jean-Pierre Bogler CSP_WZ#1322: Initial creation
*
**********************************************************************************************************************/


/**********************************************************************************************************************
*
* Header includes
*
**********************************************************************************************************************/

/* generic includes for the NodeStateAccess library        */
#include "gio/gio.h"         /* glib types                 */
#include "NodeStateAccess.h" /* own header                 */
#include "NodeStateTypes.h"  /* Type defintions of the NSM */

/* additional includes to use D-Bus                        */



/**********************************************************************************************************************
*
* Local variables
*
**********************************************************************************************************************/

/* Variables to handle main loop and bus connection */


/**********************************************************************************************************************
*
* Prototypes for file local functions (see implementation for description)
*
**********************************************************************************************************************/


/**********************************************************************************************************************
*
* Local (static) functions
*
**********************************************************************************************************************/


/**********************************************************************************************************************
*
* Interfaces. Exported functions. See Header for detailed description.
*
**********************************************************************************************************************/

gboolean NSMA_boInit(const NSMA_tstObjectCallbacks *pstCallbacks)
{
	return FALSE;
}


gboolean NSMA_boWaitForEvents(void)
{
  return FALSE;
}


gboolean NSMA_boSendNodeStateSignal(const NsmNodeState_e enNodeState)
{
  return FALSE;
}


gboolean NSMA_boSendSessionSignal(const NsmSession_s *pstSession)
{
  return FALSE;
}


gboolean NSMA_boSendApplicationModeSignal(const NsmApplicationMode_e enApplicationMode)
{
  return FALSE;
}


gboolean NSMA_boSetBootMode(gint i32BootMode)
{
  return FALSE;
}


gboolean NSMA_boGetBootMode(gint *pi32BootMode)
{
  return FALSE;
}


gboolean NSMA_boSetRunningReason(const NsmRunningReason_e enRunningReason)
{
  return FALSE;
}


gboolean NSMA_boGetRunningReason(NsmRunningReason_e *penRunningReason)
{
  return FALSE;
}


gboolean NSMA_boSetShutdownReason(const NsmShutdownReason_e enShutdownReason)
{
  return FALSE;
}


gboolean NSMA_boGetShutdownReason(NsmShutdownReason_e *penShutdownReason)
{
  return FALSE;
}


gboolean NSMA_boSetRestartReason(const NsmRestartReason_e enRestartReason)
{
  return FALSE;
}


gboolean NSMA_boGetRestartReason(NsmRestartReason_e *penRestartReason)
{
  return FALSE;
}


gboolean NSMA_boQuitEventLoop(void)
{
  return FALSE;
}


gboolean NSMA_boFreeLcConsumerProxy(NSMA_tLcConsumerHandle hLcConsumer)
{
 return FALSE;
}


NSMA_tLcConsumerHandle NSMA_hCreateLcConsumer(const gchar* sBusName,
                                              const gchar* sObjName,
                                              const guint  u32TimeoutMs)
{
  return NULL;
}



gboolean NSMA_boCallLcClientRequest(NSMA_tLcConsumerHandle hLcClient,
                                    guint                  u32ShutdownType)
{
  return FALSE;
}


gboolean NSMA_boSetLcClientTimeout(NSMA_tLcConsumerHandle hClient, guint u32TimeoutMs)
{
  return FALSE;
}


gboolean NSMA_boGetLcClientTimeout(NSMA_tLcConsumerHandle hClient, guint *pu32TimeoutMs)
{
  return FALSE;
}


gboolean NSMA_boDeInit(void)
{
  return FALSE;
}