|
libsparklepaw
PawSD library
|
Simple convenient routines for common lookups. More...
Go to the source code of this file.
Functions | |
| const char * | sprkl_strerror (int err) |
| Converts an error code generated by sprkl_fetchsvc() into a message. | |
| int | sprkl_fetchsvc (struct sprkl_service **svc, enum sprkl_sigalgo alg, uint8_t *key, uint16_t idx) |
| Fetches a service by its zone key and index. | |
Simple convenient routines for common lookups.
| int sprkl_fetchsvc | ( | struct sprkl_service ** | svc, |
| enum sprkl_sigalgo | alg, | ||
| uint8_t * | key, | ||
| uint16_t | idx ) |
Fetches a service by its zone key and index.
If successful, the service must be freed afterwards using sprkl_service_freeall().
| [out] | svc | Result of a successful lookup will be written here. |
| [in] | alg | Algorithm used to sign the zone. |
| [in] | key | Key used to sign the zone. (aka zone key or zone ID) |
| [in] | idx | Service index within the zone. |