2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2012-11-15 23:03:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
2013-03-20 01:54:04 +01:00
|
|
|
#include <stdbool.h>
|
2019-03-27 11:32:41 +01:00
|
|
|
#include <stdio.h>
|
2013-03-20 01:54:04 +01:00
|
|
|
|
2012-11-15 23:03:31 +01:00
|
|
|
#include "sd-id128.h"
|
2015-11-18 22:46:33 +01:00
|
|
|
|
2013-03-29 01:17:24 +01:00
|
|
|
#include "hashmap.h"
|
|
|
|
#include "strbuf.h"
|
|
|
|
|
2015-11-08 11:20:01 +01:00
|
|
|
int catalog_import_file(Hashmap *h, const char *path);
|
2013-03-29 01:17:24 +01:00
|
|
|
int catalog_update(const char* database, const char* root, const char* const* dirs);
|
|
|
|
int catalog_get(const char* database, sd_id128_t id, char **data);
|
|
|
|
int catalog_list(FILE *f, const char* database, bool oneline);
|
|
|
|
int catalog_list_items(FILE *f, const char* database, bool oneline, char **items);
|
2013-12-03 03:35:31 +01:00
|
|
|
int catalog_file_lang(const char *filename, char **lang);
|
2013-03-29 01:17:24 +01:00
|
|
|
extern const char * const catalog_file_dirs[];
|
2014-08-13 01:00:18 +02:00
|
|
|
extern const struct hash_ops catalog_hash_ops;
|