24 lines
619 B
C
Executable File
24 lines
619 B
C
Executable File
#ifndef BROWSER_RESOLVER_H
|
|
#define BROWSER_RESOLVER_H
|
|
|
|
#include "types.h"
|
|
|
|
typedef struct {
|
|
wchar_t browser_id[64];
|
|
wchar_t exe_path[MAX_PATH_LEN];
|
|
} BrowserInfo;
|
|
|
|
typedef struct {
|
|
BrowserInfo* items;
|
|
size_t count;
|
|
size_t capacity;
|
|
} BrowserList;
|
|
|
|
BrowserList* browser_list_create(void);
|
|
void browser_list_destroy(BrowserList* list);
|
|
bool browser_list_add(BrowserList* list, const wchar_t* id, const wchar_t* path);
|
|
|
|
bool browser_resolve_path(const wchar_t* exe_name, wchar_t* out_path, size_t len);
|
|
BrowserList* browser_find_all_installed(void);
|
|
|
|
#endif // BROWSER_RESOLVER_H
|