2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2012-11-15 23:03:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/***
|
|
|
|
This file is part of systemd.
|
|
|
|
|
|
|
|
Copyright 2012 Lennart Poettering
|
|
|
|
|
|
|
|
systemd is free software; you can redistribute it and/or modify it
|
|
|
|
under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
systemd is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***/
|
|
|
|
|
2013-03-20 01:54:04 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
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;
|