Skip to content
Extraits de code Groupes Projets
Vérifiée Valider edb2946f rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Set everything to be able to update/rescan from kurisu

parent c4af8908
Branches
Aucune étiquette associée trouvée
1 requête de fusion!65Resolve "Sync from kurisu"
Ce commit fait partie de la requête de fusion !65. Les commentaires créés ici seront créés dans le contexte de cette requête de fusion.
......@@ -3,6 +3,8 @@
#include <lektor/defines.h>
#include <lektor/mkv.h>
#include <lektor/thread.h>
#include <lektor/uri.h>
#include <curl/curl.h>
#include <sqlite3.h>
#include <json.h>
......@@ -36,3 +38,9 @@ int repo_download_id_sync(struct lkt_repo *const repo, sqlite3 *db, const uint64
const char *kara_path, struct kara_metadata *mdt_ret);
int repo_download_id_async(const size_t id);
int repo_get_kara_async(struct kara **downloaded);
/* Scan and update the DB.
If only update from the kurisu repo, rescan must be null, if you want to
also scan the directories, set rescan to a non zero value. If the uri is
null, will just update/rescan everything. */
int repo_sync(struct lkt_uri_t *uri, int rescan);
......@@ -39,7 +39,8 @@ core_sources = [ 'src/mkv/bufferfd.c'
, 'src/uri.c'
, 'src/ini/ini.c'
, 'src/repo/curl.c'
, 'src/repo/async.c'
, 'src/repo/downloader.c'
, 'src/repo/sync.c'
, 'src/thread.c'
]
......
Fichier déplacé
src/repo/sync.c 0 → 100644
#define _POSIX_C_SOURCE 200809L
#include <lektor/repo.h>
int
repo_sync(struct lkt_uri_t *uri, int rescan)
{
(void) rescan;
(void) uri;
return 1;
}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter