Auxiliary and miscellaneous functions/macros
Auxiliary functions for handling & reporting errors.
Typedef Documentation
See source code for detailed information.
- Parameters:
-
- Returns:
- 1: success, continue walking 0: quit walking.
Function Documentation
int APIDECL dcDevice_GetHubName |
( |
DEVICE |
d, |
|
|
const char ** |
name | |
|
) |
| | |
The hub name is merely the descriptor for the underlying transport protocol (TCP, USB, etc.)
- Parameters:
-
| d | Device handle |
| name | Pointer to a const char * to point to name of the associated Hub ("TCP", "USB", ...) after successfull call. |
- Returns:
- Error code. The returned name is only valid when the error code is 0.
- Examples:
- master.c.
The feedback function must return a value = 0, if the caller should proceed. For example, a GUI based feedback routine may allow the user to cancel the procedure by hitting the ESC key. If the procedure was cancelled, the caller returns DCERR_CANCEL.
- Parameters:
-
| d | Device handle |
| func | Pointer to a feedback function of type FeedbackFuncP If equal 0, the default dummy routine (no feedback) is set. |
- Returns:
- the previous feedback function pointer
Sets the local log function. The function must be of type LogFuncP.
Returns previous log function.
int APIDECL dcValue_ToString |
( |
DCValue * |
val, |
|
|
char * |
outs, |
|
|
int |
len | |
|
) |
| | |
- Parameters:
-
| val | DCValue to convert |
| outs | Output string pointer |
| len | Output string length |
- Returns:
- error, if string length not sufficient
- Examples:
- master.c.