65 |
char str[32]; |
char str[32]; |
66 |
|
|
67 |
/* additional info is only required if the node hasn't been deleted */ |
/* additional info is only required if the node hasn't been deleted */ |
68 |
g_ascii_dtostr(str, sizeof(str), node->pos.lat); |
g_ascii_formatd(str, sizeof(str), LL_FORMAT, node->pos.lat); |
69 |
xmlNewProp(node_node, BAD_CAST "lat", BAD_CAST str); |
xmlNewProp(node_node, BAD_CAST "lat", BAD_CAST str); |
70 |
g_ascii_dtostr(str, sizeof(str), node->pos.lon); |
g_ascii_formatd(str, sizeof(str), LL_FORMAT, node->pos.lon); |
71 |
xmlNewProp(node_node, BAD_CAST "lon", BAD_CAST str); |
xmlNewProp(node_node, BAD_CAST "lon", BAD_CAST str); |
72 |
snprintf(str, sizeof(str), "%ld", node->time); |
snprintf(str, sizeof(str), "%ld", node->time); |
73 |
xmlNewProp(node_node, BAD_CAST "time", BAD_CAST str); |
xmlNewProp(node_node, BAD_CAST "time", BAD_CAST str); |