9 #ifndef _GXPL_UTIL_HEADER_ 10 #define _GXPL_UTIL_HEADER_ 12 #include <gxPL/defs.h> 91 const char * device_id);
162 int gxPLIdSet (
gxPLId *
id,
const char * vendor_id,
const char * device_id,
const char * instance_id);
325 char *
gxPLDateStr (
unsigned long t,
const char * format);
333 char *
gxPLTimeStr (
unsigned long t,
const char * format);
350 #if !defined(__DOXYGEN__) 355 #include <avrio/memdebug.h> 358 gxPLDynamicMemoryUsed (
void) {
360 return ulMemoryUsed();
367 gxPLDynamicMemoryUsed (
void) {
369 struct mallinfo mi = mallinfo();
375 gxPLDynamicMemoryUsed (
void) {
const void * gxPLPairKey(const void *pair)
Returns the name of a pair as a const void * pointer Used by sysio vector.
int gxPLSchemaFromString(gxPLSchema *schema, const char *str)
Describe a source or destination xPL identifier.
char * gxPLDateStr(unsigned long t, const char *format)
converts the system time t into a null-terminated string
int gxPLIdVendorIdSet(gxPLId *id, const char *vendor_id)
Sets vendor identifier.
char * gxPLTimeStr(unsigned long t, const char *format)
converts the system time t into a null-terminated string
unsigned long gxPLTime(void)
System time This time can be an absolute time (a date) or relative to the system startup (on embedded...
void gxPLPairDelete(void *pair)
Release a pair allocte on the heap Used by sysio vector and dlist.
int gxPLStrCpy(char *dst, const char *src)
Copy string in accordance with xPL.
char * gxPLDateTimeStr(unsigned long t, const char *format)
converts the system time t into a null-terminated string
Describe a name=value pair.
int gxPLIdCmp(const gxPLId *id1, const gxPLId *id2)
Compare two identifiers.
int gxPLSchemaCopy(gxPLSchema *dst, const gxPLSchema *src)
int gxPLSchemaCmp(const gxPLSchema *s1, const gxPLSchema *s2)
Compare two schemas.
int gxPLIdCopy(gxPLId *dst, const gxPLId *src)
Copy two identifiers.
int gxPLPairMatch(const void *key1, const void *key2)
Compares name of 2 pair s.
struct _gxPLPair gxPLPair
Describe a name=value pair.
int gxPLSchemaIsEmpty(const gxPLSchema *schema)
int gxPLIdSet(gxPLId *id, const char *vendor_id, const char *device_id, const char *instance_id)
Sets an identifier.
xVector * gxPLConfigReadFile(const char *filename, const char *vendor_id, const char *device_id)
int gxPLIdFromString(gxPLId *dest, char *src)
Gets an identifier from a string.
int gxPLSchemaMatch(const gxPLSchema *s1, const char *schema_class, const char *schema_type)
Compare two schemas.
int gxPLSchemaTypeSet(gxPLSchema *s, const char *schema_type)
int gxPLIdInstanceIdSet(gxPLId *id, const char *instance_id)
Sets instance identifier.
gxPLPair * gxPLPairFromLine(char *line)
Sets a name/value form a string.
const char * gxPLLongToStr(long value)
Quickly to convert an long integer to string.
const char * gxPLDoubleToStr(double value, int precision)
Quickly to convert an double to string.
int gxPLSchemaSet(gxPLSchema *schema, const char *schema_class, const char *schema_type)
int gxPLTimeDelayMs(unsigned long ms)
suspends execution for (at least) ms milliseconds
const char * gxPLConfigPath(const char *filename)
Returns the path of a configuration file.
int gxPLIdDeviceIdSet(gxPLId *id, const char *device_id)
Sets device identifier.
int gxPLSchemaClassSet(gxPLSchema *s, const char *schema_class)
int gxPLTimeMs(unsigned long *ms)
System time in milliseconds.
gxPLPair * gxPLPairFromString(char *str)
Sets a name/value form a string.