1 /***************************************************************************
3 * Copyright 2010,2011 BMW Car IT GmbH
4 * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 ****************************************************************************/
20 #ifndef _ILM_COMMON_H_
21 #define _ILM_COMMON_H_
25 #endif /* __cplusplus */
27 #include "ilm_types.h"
28 #include "ilm_configuration.h"
29 #include "ilm_tools.h"
31 extern struct IpcModule gIpcModule;
34 * \brief Initializes the IVI LayerManagement Client.
36 * \return ILM_SUCCESS if the method call was successful
37 * \return ILM_FAILED if a connection can not be established to the services.
39 ilmErrorTypes ilm_init();
42 * \brief Returns initialization state of the IVI LayerManagement Client.
44 * \return true if client library is initialized
45 * \return false if client library is not initialized
47 t_ilm_bool ilm_isInitialized();
50 * \brief Commit all changes and execute all enqueued commands since last commit.
52 * \return ILM_SUCCESS if the method call was successful
53 * \return ILM_FAILED if the client can not call the method on the service.
55 ilmErrorTypes ilm_commitChanges();
58 * \brief Destroys the IVI LayerManagement Client.
60 * \return ILM_SUCCESS if the method call was successful
61 * \return ILM_FAILED if the client can not be closed or was not initialized.
63 ilmErrorTypes ilm_destroy();
69 #endif /* __cplusplus */
71 #endif /* _ILM_COMMON_H_ */