meta: replace bluelib with fx

This commit is contained in:
2026-06-22 17:45:54 +01:00
parent 4190a5c54a
commit c6c4b0c1f9
81 changed files with 3933 additions and 1349 deletions
+18 -12
View File
@@ -1,30 +1,36 @@
#ifndef _ROPKG_INSTANCE_H_
#define _ROPKG_INSTANCE_H_
#include <blue/io/directory.h>
#include <fx/io/directory.h>
#include <fx/io/file.h>
#include <ropkg/package-db.h>
#include <ropkg/system-state.h>
#define ROPKG_INSTANCE_DIRPATH_CONFIG "etc/ropkg"
#define ROPKG_INSTANCE_DIRPATH_CACHE "var/cache/ropkg"
#define ROPKG_INSTANCE_DIRPATH_DATABASE "var/lib/ropkg"
#define ROPKG_INSTANCE_DIRPATH_CONFIG_COLLECTION \
#define ROPKG_INSTANCE_DIRPATH_CONFIG_FILES \
ROPKG_INSTANCE_DIRPATH_CONFIG "/config"
#define ROPKG_INSTANCE_DIRPATH_SOURCES ROPKG_INSTANCE_DIRPATH_CONFIG "/sources"
#define ROPKG_INSTANCE_DIRPATH_AVAILABLE \
ROPKG_INSTANCE_DIRPATH_DATABASE "/available.d"
#define ROPKG_INSTANCE_DIRPATH_SOURCES ROPKG_INSTANCE_DIRPATH_CONFIG "/sources"
#define ROPKG_INSTANCE_DIRPATH_ARCHIVES ROPKG_INSTANCE_DIRPATH_CACHE "/archives"
#define ROPKG_INSTANCE_FILEPATH_INSTALLED \
ROPKG_INSTANCE_DIRPATH_DATABASE "/installed"
#define ROPKG_INSTANCE_FILEPATH_STATUS \
ROPKG_INSTANCE_DIRPATH_DATABASE "/status.rodb"
#define ROPKG_INSTANCE_FILEPATH_AVAILABLE \
ROPKG_INSTANCE_DIRPATH_DATABASE "/available"
ROPKG_INSTANCE_DIRPATH_DATABASE "/available.rodb"
#define ROPKG_INSTANCE_FILEPATH_LOCK ROPKG_INSTANCE_DIRPATH_DATABASE "/lock"
struct ropkg_instance {
b_directory *inst_root;
fx_directory *inst_root;
b_directory *inst_dir_config;
b_directory *inst_dir_cache;
b_directory *inst_dir_database;
fx_file *inst_lock;
fx_directory *inst_dir_config;
fx_directory *inst_dir_cache;
fx_directory *inst_dir_database;
struct ropkg_system_state *inst_status;
struct ropkg_package_db *inst_available;
};
#endif