#ifndef ADDON_H
#define ADDON_H
+#define ADDON_FOLDERNAME_MAX 64
+
+/* total count that we have knowledge of */
+#define ADDON_MOUNTED_MAX 128
+#define ADDON_UID_MAX 76
+
+#ifndef ADDON_DEFINE_ONLY
+
#include "skaterift.h"
#include "vg/vg_steam_ugc.h"
#include "addon_types.h"
#include "world.h"
#include "player.h"
-#define ADDON_FOLDERNAME_MAX 64
-
-/* total count that we have knowledge of */
-#define ADDON_MOUNTED_MAX 128
-
typedef struct addon_reg addon_reg;
typedef struct addon_cache_entry addon_cache_entry;
typedef struct addon_alias addon_alias;
/* scanning routines */
static u32 addon_match( addon_alias *alias );
-static void addon_alias_uid( addon_alias *alias, char buf[76] );
+static void addon_alias_uid( addon_alias *alias, char buf[ADDON_UID_MAX] );
static void addon_mount_content_folder( enum addon_type type,
const char *base_folder,
const char *content_ext );
static void addon_cache_watch( enum addon_type type, u16 cache_id );
static void addon_cache_unwatch( enum addon_type type, u16 cache_id );
+static u16 addon_cache_create_viewer_from_uid( enum addon_type type,
+ char uid[ADDON_UID_MAX] );
+#endif
#endif /* ADDON_H */