diff options
Diffstat (limited to 'include/service_app.h')
-rw-r--r-- | include/service_app.h | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/include/service_app.h b/include/service_app.h index 55ed3d7..2cea3ee 100644 --- a/include/service_app.h +++ b/include/service_app.h @@ -14,7 +14,6 @@ * limitations under the License. */ - #ifndef __TIZEN_APPFW_SERVICE_APP_H__ #define __TIZEN_APPFW_SERVICE_APP_H__ @@ -31,12 +30,9 @@ extern "C" { * @{ */ - /** * @brief Called at the start of the agent application. - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * * @param[in] user_data The user data passed from the callback registration function * @return @c true on success, * otherwise @c false @@ -49,9 +45,7 @@ typedef bool (*service_app_create_cb) (void *user_data); /** * @brief Called once after the main loop of the agent application exits. - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * * @param[in] user_data The user data passed from the callback registration function * @see service_app_main() * @see #service_app_lifecycle_callback_s @@ -61,9 +55,7 @@ typedef void (*service_app_terminate_cb) (void *user_data); /** * @brief Called when another application sends the launch request to the agent application. - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * * @param[in] app_control The handle to the app_control * @param[in] user_data The user data passed from the callback registration function * @see service_app_main() @@ -76,9 +68,7 @@ typedef void (*service_app_control_cb) (app_control_h app_control, void *user_da /** * @brief The structure type containing the set of callback functions for handling application events. * @details It is one of the input parameters of the service_app_efl_main() function. - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * * @see service_app_main() * @see service_app_create_cb() * @see service_app_terminate_cb() @@ -93,19 +83,17 @@ typedef struct { /** * @brief Adds the system event handler - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @remarks The service application can handle low memory event, low battery event, language setting changed event and region format changed event. * @param[out] handler The event handler * @param[in] event_type The system event type * @param[in] callback The callback function * @param[in] user_data The user data to be passed to the callback function - * - * @return 0 on success, otherwise a negative error value - * @retval #APP_ERROR_NONE Successfull + * @return @c 0 on success, + * otherwise a negative error value + * @retval #APP_ERROR_NONE Successful * @retval #APP_ERROR_INVALID_PARAMETER Invalid parameter * @retval #APP_ERROR_OUT_OF_MEMORY Out of memory - * * @see app_event_type_e * @see app_event_cb * @see service_app_remove_event_handler @@ -115,14 +103,12 @@ int service_app_add_event_handler(app_event_handler_h *handler, app_event_type_e /** * @brief Removes registered event handler - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @param[in] event_handler The event handler - * - * @return 0 on success, otherwise a negative error value - * @retval #APP_ERROR_NONE Successfull + * @return @c 0 on success, + * otherwise a negative error value + * @retval #APP_ERROR_NONE Successful * @retval #APP_ERROR_INVALID_PARAMETER Invalid parameter - * * @see service_app_add_event_handler */ int service_app_remove_event_handler(app_event_handler_h event_handler); @@ -130,24 +116,19 @@ int service_app_remove_event_handler(app_event_handler_h event_handler); /** * @brief Runs the main loop of the application until service_app_exit() is called. - * * @details This function is the main entry point of the Tizen service application. * This main loop supports event handling for the GMainLoop and the Ecore Main Loop. - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * * @param[in] argc The argument count * @param[in] argv The argument vector * @param[in] callback The set of callback functions to handle application events * @param[in] user_data The user data to be passed to the callback functions - * * @return @c 0 on success, * otherwise a negative error value. * @retval #APP_ERROR_NONE Successful * @retval #APP_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #APP_ERROR_INVALID_CONTEXT The application is illegally launched, not launched by the launch system. + * @retval #APP_ERROR_INVALID_CONTEXT The application is launched illegally, not launched by the launch system. * @retval #APP_ERROR_ALREADY_RUNNING The main loop has already started - * * @see service_app_create_cb() * @see service_app_terminate_cb() * @see service_app_control_cb() @@ -159,11 +140,8 @@ int service_app_main(int argc, char **argv, service_app_lifecycle_callback_s *ca /** * @brief Exits the main loop of the application. - * * @details The main loop of the application stops and service_app_terminate_cb() is invoked. - * * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * * @see service_app_main() * @see service_app_terminate_cb() */ |