My pretty neat website
git clone git://soophie.de/soso
blob: d7e56c3b6e94f6e3dba48fc93bd57fb72b884d1c (947 bytes)[raw]
1
#pragma once3
#include <tpee.h>4
#include <orb.h>5
#include "module/page.h"6
#include "module/default.h"7
#include "module/index.h"8
#include "module/git_list.h"9
#include "module/git_repo.h"10
#include "module/git_repo_log.h"11
#include "module/git_repo_tree.h"12
#include "module/git_repo_refs.h"13
#include "module/git_repo_commit.h"14
#include "module/git_repo_blob.h"16
typedef struct {17
const char* id;18
const orb_module_type_t *type;19
} registry_entry_t;21
static const registry_entry_t REGISTRY[] = {22
{ "page", &PAGE_TYPE },23
{ "default", &DEFAULT_TYPE },24
{ "index", &INDEX_TYPE },25
{ "git_list", &GIT_LIST_TYPE },26
{ "git_repo", &GIT_REPO_TYPE },27
{ "git_repo_log", &GIT_REPO_LOG_TYPE },28
{ "git_repo_tree", &GIT_REPO_TREE_TYPE },29
{ "git_repo_refs", &GIT_REPO_REFS_TYPE },30
{ "git_repo_commit", &GIT_REPO_COMMIT_TYPE },31
{ "git_repo_blob", &GIT_REPO_BLOB_TYPE },32
};34
static const size_t REGISTRY_LEN = sizeof(REGISTRY) / sizeof(REGISTRY[0]);