2021-08-22 15:34:28 -04:00
|
|
|
#pragma once
|
|
|
|
|
2024-02-20 21:41:37 -05:00
|
|
|
/**
|
|
|
|
** \defgroup tf_import Tilde Friends Import
|
|
|
|
** Support for importing Tilde Friends apps from disk to the database.
|
|
|
|
**
|
|
|
|
** I don't know why it has SSB in the name.
|
|
|
|
** @{
|
|
|
|
*/
|
|
|
|
|
2024-03-03 18:12:44 -05:00
|
|
|
/** An SSB instance. */
|
2021-08-22 15:34:28 -04:00
|
|
|
typedef struct _tf_ssb_t tf_ssb_t;
|
|
|
|
|
2024-03-03 18:12:44 -05:00
|
|
|
/**
|
|
|
|
** Import apps in a directory to a user's account.
|
|
|
|
** @param ssb The SSB instance.
|
|
|
|
** @param user The username.
|
|
|
|
** @param path The on-disk path of the apps.
|
|
|
|
*/
|
2021-08-22 15:34:28 -04:00
|
|
|
void tf_ssb_import(tf_ssb_t* ssb, const char* user, const char* path);
|
2024-03-03 18:12:44 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
** Import apps from a zip file to a user's account.
|
|
|
|
** @param ssb The SSB instance.
|
|
|
|
** @param zip_path The path to the zip file on disk.
|
|
|
|
** @param user The user into whose account the apps will be imported.
|
|
|
|
** @param path The path in the zip to the apps.
|
|
|
|
*/
|
2023-03-08 20:39:48 -05:00
|
|
|
void tf_ssb_import_from_zip(tf_ssb_t* ssb, const char* zip_path, const char* user, const char* path);
|
2024-02-20 21:41:37 -05:00
|
|
|
|
|
|
|
/** @} */
|