It provides APIs managing underlying anti malware engines.
Required Header
#include <csr-engine-manager.h>
Overview
It provides APIs getting engine information and enabling or disabling underlying anti malware engines.
Typedef Documentation
Engine handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
Enumeration Type Documentation
Enumeration for state of engine activation.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Enumerator:
CSR_NOT_ACTIVATED |
Engine is not activated
|
CSR_ACTIVATED |
Engine is activated
|
Enumeration for engine identifier.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Enumerator:
CSR_ENGINE_CS |
Content screening engine id
|
CSR_ENGINE_WP |
Web protection engine id
|
Enumeration for state of engine.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Enumerator:
CSR_STATE_ENABLE |
Enable engine
|
CSR_STATE_DISABLE |
Disable engine
|
Function Documentation
Releases all system resources associated with a engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Parameters:
-
[in] | engine | The engine information handle |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
Extracts the state of engine activation from the engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[out] | activated | A pointer of the engine activation state |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Extracts an engine's data version from the engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[out] | version | A pointer of the data version. It can be null |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Extracts the latest update time of an engine from the engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[out] | time | A pointer of lasted update time |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Extracts an engine name from the engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[out] | name | A pointer of the engine's name |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Gets the engine state.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[out] | state | A pointer of the engine state |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Extracts a vendor name from the engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[out] | vendor | A pointer of the engine's vendor name |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Extracts an engine version from the engine information handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | An engine information handle |
[out] | version | A pointer of the engine's version |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Enable or disable an engine.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/antivirus.admin
- Parameters:
-
[in] | engine | The engine information handle |
[in] | state | The engine state |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_get_current_engine()
Gets the handle of a current engine information.
- Warning:
- This is not for use by third-party applications.
- Since :
- 3.0
- Parameters:
-
[in] | id | Engine identifier to get handle |
[out] | engine | A pointer of the engine information handle |
- Returns:
- CSR_ERROR_NONE on success, otherwise a negative error value
- Return values:
-
- See also:
- csr_engine_destroy()