[db] Add methods db_mprintf() and db_snprintf() which wrap sqlite

This commit is contained in:
ejurgensen
2017-10-14 10:14:09 +02:00
parent 4d47307a02
commit 47585d0d03
3 changed files with 56 additions and 8 deletions

View File

@@ -424,7 +424,13 @@ struct db_queue_item
};
char *
db_escape_string(const char *str);
db_escape_string(const char *str); // TODO Remove this, use db_mprintf instead
char *
db_mprintf(const char *fmt, ...);
int
db_snprintf(char *s, int n, const char *fmt, ...);
void
free_pi(struct pairing_info *pi, int content_only);