Tizen Native API
9.0
|
The STC API provides functions for managing and monitoring network packets.
Required Header
#include <stc.h>
Overview
This functions is used to initialize the settings of Smart Traffic Control.
Related Features
This API is related with the following features:
It is recommended to use features in your application for reliability.
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Functions | |
int | stc_initialize (stc_h *stc) |
Initializes STC (Smart Traffic Control). | |
int | stc_deinitialize (stc_h stc) |
Deinitializes STC. | |
Typedefs | |
typedef void * | stc_h |
The smart traffic control handle. |
Typedef Documentation
typedef void* stc_h |
The smart traffic control handle.
- Since :
- 4.0
Enumeration Type Documentation
enum stc_error_e |
Enumeration for Smart Traffic Control (STC) error type.
- Since :
- 4.0
- Enumerator:
Function Documentation
int stc_deinitialize | ( | stc_h | stc | ) |
Deinitializes STC.
This function releases the resources associated with the given STC handle. It should be called after all STC operations are completed to clean up the system resources.
- Since :
- 4.0
- Parameters:
-
[in] stc The STC handle
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
STC_ERROR_NONE Successful STC_ERROR_OPERATION_FAILED General error STC_ERROR_OUT_OF_MEMORY Out of memory STC_ERROR_INVALID_PARAMETER Invalid parameter STC_ERROR_INVALID_OPERATION Invalid operation STC_ERROR_NOT_INITIALIZED Not initialized STC_ERROR_NOT_SUPPORTED Not supported
- See also:
- stc_h
- stc_initialize()
int stc_initialize | ( | stc_h * | stc | ) |
Initializes STC (Smart Traffic Control).
This function initializes the Smart Traffic Control (STC) handle and prepares it for use. It is mandatory to call this function before using any other STC functions.
- Since :
- 4.0
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/network.get
- Remarks:
- You must release stc using stc_deinitialize().
- Parameters:
-
[out] stc The STC handle
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
STC_ERROR_NONE Successful STC_ERROR_OPERATION_FAILED General error STC_ERROR_OUT_OF_MEMORY Out of memory STC_ERROR_INVALID_PARAMETER Invalid parameter STC_ERROR_INVALID_OPERATION Invalid operation STC_ERROR_NOT_SUPPORTED Not supported STC_ERROR_PERMISSION_DENIED Permission denied
- See also:
- stc_h
- stc_deinitialize()