mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 00:24:23 -04:00
Stratosphere: Launch Queue C style lib -> namespace
This commit is contained in:
parent
c8d1342ddf
commit
033cd8df24
2 changed files with 37 additions and 46 deletions
|
@ -6,14 +6,16 @@
|
|||
|
||||
#define LAUNCH_QUEUE_ARG_SIZE_MAX (0x8000)
|
||||
|
||||
typedef struct launch_item_t {
|
||||
u64 tid;
|
||||
u64 arg_size;
|
||||
char args[LAUNCH_QUEUE_ARG_SIZE_MAX];
|
||||
} launch_item_t;
|
||||
namespace LaunchQueue {
|
||||
struct LaunchItem {
|
||||
u64 tid;
|
||||
u64 arg_size;
|
||||
char args[LAUNCH_QUEUE_ARG_SIZE_MAX];
|
||||
};
|
||||
|
||||
Result launch_queue_add(launch_item_t item);
|
||||
int launch_queue_get_index(u64 TID);
|
||||
int launch_queue_get_free_index(u64 TID = 0);
|
||||
bool launch_queue_contains(u64 TID);
|
||||
void launch_queue_clear();
|
||||
Result add(LaunchItem *item);
|
||||
int get_index(u64 tid);
|
||||
int get_free_index(u64 tid);
|
||||
bool contains(u64 tid);
|
||||
void clear();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue