Internals of the Context module.
More...
Internals of the Context module.
- See also
- Context
◆ srpContextGetF()
Get a float parameter in the context
- Parameters
-
| [in] | contextParameter | The context parameter you want to get |
- Returns
- Requested parameter or 0 on error
◆ srpContextGetI()
Get an integer/enum parameter in the context
- Parameters
-
| [in] | contextParameter | The context parameter you want to get |
- Returns
- Requested parameter or 0 on error
◆ srpContextGetMessageCallback()
Get the current message callback function
- Returns
- The pointer to the current message callback function
◆ srpContextGetP()
Get a pointer parameter in the context
- Parameters
-
| [in] | contextParameter | The context parameter you want to get |
- Returns
- Requested parameter or NULL on error
◆ srpContextSetF()
Set a float parameter in the context
- Parameters
-
| [in] | contextParameter | The context parameter you want to modify |
| [in] | data | The value you want to assign to specified context parameter |
◆ srpContextSetI()
Set an integer/enum parameter in the context
- Parameters
-
| [in] | contextParameter | The context parameter you want to modify |
| [in] | data | The value you want to assign to specified context parameter |
◆ srpContextSetMessageCallback()
Set message callback function
- Parameters
-
| [in] | callback | The pointer to the message callback function |
◆ srpContextSetP()
Set a pointer parameter in the context
- Parameters
-
| [in] | contextParameter | The context parameter you want to modify |
| [in] | data | The pointer you want to assign to specified context parameter |
◆ srpMessageCallbackHelper()
A helper function used by the library implementation to make callbacks easier
- Parameters
-
| [in] | type | Message type |
| [in] | severity | Message severity |
| [in] | sourceFunction | Function that is the source of this message |
| [in] | format | printf-like format string |
| [in] | ... | Values passed to the format string |
- See also
SRPMessageCallbackType
◆ srpNewContext()
Initialize the context
- Parameters
-
| [in] | pContext | The pointer to context |