TizenRT Public API  v2.0 M2
binary_manager.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * Copyright 2019 Samsung Electronics All Rights Reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing,
12  * software distributed under the License is distributed on an
13  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14  * either express or implied. See the License for the specific
15  * language governing permissions and limitations under the License.
16  *
17  ****************************************************************************/
28 #ifndef __BINARY_MANAGER_H__
29 #define __BINARY_MANAGER_H__
30 
31 /***************************************************************************
32  * Included Files
33  ***************************************************************************/
34 #include <tinyara/binary_manager.h>
35 
36 /****************************************************************************
37  * Pre-processor Definitions
38  ****************************************************************************/
39 #ifdef CONFIG_BINMGR_UPDATE
40 
50 int binary_manager_update_binary(char *binary_name);
51 
62 int binary_manager_get_update_info(char *binary_name, binary_info_t *binary_info);
63 
73 int binary_manager_get_update_info_all(binary_info_list_t *binary_info_list);
74 #endif
75 
85 
94 int binary_manager_register_state_changed_callback(binmgr_statecb_t handler, void *cb_data);
95 
105 
106 #endif
107 
int binary_manager_register_state_changed_callback(binmgr_statecb_t handler, void *cb_data)
Set the callback which will be called when the the states of binaries are changed.
int binary_manager_notify_binary_started(void)
Notify that loaded binary is started to binary manager.
int binary_manager_unregister_state_changed_callback(void)
Clear the registered callback for the changes of binary state.