| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <cstdio> | 5 #include <cstdio> |
| 6 #include <dlfcn.h> | 6 #include <dlfcn.h> |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include <base/basictypes.h> | 10 #include <base/basictypes.h> |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 DECL_FUNC_1(RemoveIPConfig, bool, IPConfig*); | 165 DECL_FUNC_1(RemoveIPConfig, bool, IPConfig*); |
| 166 DECL_FUNC_1(FreeIPConfig, void, IPConfig*); | 166 DECL_FUNC_1(FreeIPConfig, void, IPConfig*); |
| 167 DECL_FUNC_1(FreeIPConfigStatus, void, IPConfigStatus*); | 167 DECL_FUNC_1(FreeIPConfigStatus, void, IPConfigStatus*); |
| 168 DECL_FUNC_0(GetDeviceNetworkList, DeviceNetworkList*); | 168 DECL_FUNC_0(GetDeviceNetworkList, DeviceNetworkList*); |
| 169 DECL_FUNC_1(FreeDeviceNetworkList, void, DeviceNetworkList*); | 169 DECL_FUNC_1(FreeDeviceNetworkList, void, DeviceNetworkList*); |
| 170 | 170 |
| 171 // Touchpad | 171 // Touchpad |
| 172 DECL_FUNC_2(SetSynapticsParameter, void, SynapticsParameter, int); | 172 DECL_FUNC_2(SetSynapticsParameter, void, SynapticsParameter, int); |
| 173 | 173 |
| 174 // Login | 174 // Login |
| 175 DECL_FUNC_2(CheckWhitelist, bool, const char*, std::vector<uint8>*); |
| 175 DECL_FUNC_0(EmitLoginPromptReady, bool); | 176 DECL_FUNC_0(EmitLoginPromptReady, bool); |
| 177 DECL_FUNC_2(RestartJob, bool, int, const char*); |
| 178 DECL_FUNC_3(RetrieveProperty, |
| 179 bool, |
| 180 const char*, |
| 181 std::string*, |
| 182 std::vector<uint8>*); |
| 176 DECL_FUNC_1(SetOwnerKey, bool, const std::vector<uint8>&); | 183 DECL_FUNC_1(SetOwnerKey, bool, const std::vector<uint8>&); |
| 177 DECL_FUNC_2(StartSession, bool, const char*, const char*); | 184 DECL_FUNC_2(StartSession, bool, const char*, const char*); |
| 178 DECL_FUNC_1(StopSession, bool, const char*); | 185 DECL_FUNC_1(StopSession, bool, const char*); |
| 179 DECL_FUNC_2(RestartJob, bool, int, const char*); | 186 DECL_FUNC_3(StoreProperty, |
| 187 bool, |
| 188 const char*, |
| 189 const char*, |
| 190 const std::vector<uint8>&); |
| 191 DECL_FUNC_2(Unwhitelist, bool, const char*, const std::vector<uint8>&); |
| 192 DECL_FUNC_2(Whitelist, bool, const char*, const std::vector<uint8>&); |
| 180 DECL_FUNC_2(MonitorSession, SessionConnection, SessionMonitor, void*); | 193 DECL_FUNC_2(MonitorSession, SessionConnection, SessionMonitor, void*); |
| 181 DECL_FUNC_1(DisconnectSession, void, SessionConnection); | 194 DECL_FUNC_1(DisconnectSession, void, SessionConnection); |
| 182 | 195 |
| 183 // Screen Lock | 196 // Screen Lock |
| 184 DECL_FUNC_2(MonitorScreenLock, | 197 DECL_FUNC_2(MonitorScreenLock, |
| 185 ScreenLockConnection, ScreenLockMonitor, void*); | 198 ScreenLockConnection, ScreenLockMonitor, void*); |
| 186 DECL_FUNC_1(DisconnectScreenLock, void, ScreenLockConnection); | 199 DECL_FUNC_1(DisconnectScreenLock, void, ScreenLockConnection); |
| 187 DECL_FUNC_0(NotifyScreenLockCompleted, void); | 200 DECL_FUNC_0(NotifyScreenLockCompleted, void); |
| 188 DECL_FUNC_0(NotifyScreenLockRequested, void); | 201 DECL_FUNC_0(NotifyScreenLockRequested, void); |
| 189 DECL_FUNC_0(NotifyScreenUnlockRequested, void); | 202 DECL_FUNC_0(NotifyScreenUnlockRequested, void); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 INIT_FUNC(RemoveIPConfig); | 373 INIT_FUNC(RemoveIPConfig); |
| 361 INIT_FUNC(FreeIPConfig); | 374 INIT_FUNC(FreeIPConfig); |
| 362 INIT_FUNC(FreeIPConfigStatus); | 375 INIT_FUNC(FreeIPConfigStatus); |
| 363 INIT_FUNC(GetDeviceNetworkList); | 376 INIT_FUNC(GetDeviceNetworkList); |
| 364 INIT_FUNC(FreeDeviceNetworkList); | 377 INIT_FUNC(FreeDeviceNetworkList); |
| 365 | 378 |
| 366 // Touchpad | 379 // Touchpad |
| 367 INIT_FUNC(SetSynapticsParameter); | 380 INIT_FUNC(SetSynapticsParameter); |
| 368 | 381 |
| 369 // Login | 382 // Login |
| 383 INIT_FUNC(CheckWhitelist); |
| 370 INIT_FUNC(EmitLoginPromptReady); | 384 INIT_FUNC(EmitLoginPromptReady); |
| 385 INIT_FUNC(RestartJob); |
| 386 INIT_FUNC(RetrieveProperty); |
| 371 INIT_FUNC(SetOwnerKey); | 387 INIT_FUNC(SetOwnerKey); |
| 372 INIT_FUNC(StartSession); | 388 INIT_FUNC(StartSession); |
| 373 INIT_FUNC(StopSession); | 389 INIT_FUNC(StopSession); |
| 374 INIT_FUNC(RestartJob); | 390 INIT_FUNC(StoreProperty); |
| 391 INIT_FUNC(Unwhitelist); |
| 392 INIT_FUNC(Whitelist); |
| 375 INIT_FUNC(MonitorSession); | 393 INIT_FUNC(MonitorSession); |
| 376 INIT_FUNC(DisconnectSession); | 394 INIT_FUNC(DisconnectSession); |
| 377 | 395 |
| 378 // Screen Lock | 396 // Screen Lock |
| 379 INIT_FUNC(MonitorScreenLock); | 397 INIT_FUNC(MonitorScreenLock); |
| 380 INIT_FUNC(DisconnectScreenLock); | 398 INIT_FUNC(DisconnectScreenLock); |
| 381 INIT_FUNC(NotifyScreenLockCompleted); | 399 INIT_FUNC(NotifyScreenLockCompleted); |
| 382 INIT_FUNC(NotifyScreenLockRequested); | 400 INIT_FUNC(NotifyScreenLockRequested); |
| 383 INIT_FUNC(NotifyScreenUnlockRequested); | 401 INIT_FUNC(NotifyScreenUnlockRequested); |
| 384 INIT_FUNC(NotifyScreenUnlockCompleted); | 402 INIT_FUNC(NotifyScreenUnlockCompleted); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // System | 443 // System |
| 426 INIT_FUNC(GetTimezoneID); | 444 INIT_FUNC(GetTimezoneID); |
| 427 INIT_FUNC(SetTimezoneID); | 445 INIT_FUNC(SetTimezoneID); |
| 428 INIT_FUNC(GetMachineInfo); | 446 INIT_FUNC(GetMachineInfo); |
| 429 INIT_FUNC(FreeMachineInfo); | 447 INIT_FUNC(FreeMachineInfo); |
| 430 | 448 |
| 431 return error_string.empty(); | 449 return error_string.empty(); |
| 432 } | 450 } |
| 433 | 451 |
| 434 } // namespace chromeos | 452 } // namespace chromeos |
| OLD | NEW |