appSmack_interface.h
Go to the documentation of this file.
40 //--------------------------------------------------------------------------------------------------43 * Connect the current client thread to the service providing this API. Block until the service is47 * called before any other functions in this API. Normally, ConnectService is automatically called52 //--------------------------------------------------------------------------------------------------58 //--------------------------------------------------------------------------------------------------61 * Try to connect the current client thread to the service providing this API. Return with an error65 * called before any other functions in this API. Normally, ConnectService is automatically called72 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.73 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).76 //--------------------------------------------------------------------------------------------------82 //--------------------------------------------------------------------------------------------------88 * longer a connection to the service, and the functions in this API can't be used. For details, see93 //--------------------------------------------------------------------------------------------------100 //--------------------------------------------------------------------------------------------------104 //--------------------------------------------------------------------------------------------------108 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------121 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------147 * example, if the accessMode is ACCESS_FLAG_READ | ACCESS_FLAG_WRITE then "rw" will be appended to148 * the application's SMACK label. If the accessMode is 0 (empty) then "-" will be appended to the157 //--------------------------------------------------------------------------------------------------le_result_t appSmack_TryConnectService(void)void appSmack_GetLabel(const char *appName, char *label, size_t labelNumElements)void appSmack_GetAccessLabel(const char *appName, appSmack_AccessFlags_t accessMode, char *label, size_t labelNumElements)void appSmack_DisconnectService(void)void appSmack_ConnectService(void)