RDK Documentation (Open Sourced RDK Components)
mfr_deletePDRI.c
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18 */
19 
20 
21 /**
22 * @defgroup iarmmgrs
23 * @{
24 * @defgroup mfr
25 * @{
26 **/
27 
28 
29 #include <stdio.h>
30 #include <malloc.h>
31 #include <stdlib.h>
32 #include <unistd.h>
33 #include <string.h>
34 
35 #include "libIARMCore.h"
36 #include "libIBus.h"
37 #include "mfrMgr.h"
38 
39 int main()
40 {
41  IARM_Result_t ret;
42  IARM_Bus_Init("Tool-mfrDeletePDRI");
44  printf("Tool-mfrDeletePDRI Entering\r\n");
45 
47 
48  if(ret != IARM_RESULT_SUCCESS)
49  {
50  printf("Call failed for %s: error code:%d\n","IARM_BUS_MFRLIB_API_DeletePDRI",ret);
51  }
52  else
53  {
54  printf("Call succeed for %s: error code:%d\n","IARM_BUS_MFRLIB_API_DeletePDRI",ret);
55  }
56 
57 
59  IARM_Bus_Term();
60  printf("Tool-mfrDeletePDRI Exiting\r\n");
61 }
62 
63 
64 /** @} */
65 /** @} */
IARM_Bus_Term
IARM_Result_t IARM_Bus_Term(void)
This API is used to terminate the IARM-Bus library.
IARM_Bus_Call
IARM_Result_t IARM_Bus_Call(const char *ownerName, const char *methodName, void *arg, size_t argLen)
This API is used to Invoke RPC method by its application name and method name.
Definition: iarm_bus.c:57
IARM_Bus_Disconnect
IARM_Result_t IARM_Bus_Disconnect(void)
This API disconnect Application from IARM Bus so the application will not receive any IARM event or R...
libIBus.h
RDK IARM-Bus API Declarations.
IARM_BUS_MFRLIB_NAME
#define IARM_BUS_MFRLIB_NAME
Definition: mfrMgr.h:98
IARM_Bus_Connect
IARM_Result_t IARM_Bus_Connect(void)
This API is used to connect application to the IARM bus daemon. After connected, the application can ...
Definition: iarmMgrMocks.cpp:33
IARM_BUS_MFRLIB_API_DeletePDRI
#define IARM_BUS_MFRLIB_API_DeletePDRI
Definition: mfrMgr.h:105
IARM_Bus_Init
IARM_Result_t IARM_Bus_Init(const char *name)
This API is used to initialize the IARM-Bus library.
Definition: iarmMgrMocks.cpp:38