Ai
1 Star 0 Fork 0

wangcichen/urbackup_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
StaticPluginRegistration.h 674 Bytes
一键复制 编辑 原始数据 按行查看 历史
Martin 提交于 2015-12-06 01:10 +08:00 . Linux build system overhaul
#pragma once
#include <vector>
class IServer;
typedef void(*LOADACTIONS)(IServer*);
typedef void(*UNLOADACTIONS)(void);
void register_static_plugin(LOADACTIONS loadaction, UNLOADACTIONS unloadaction, int prio);
struct SStaticPlugin
{
LOADACTIONS loadactions;
UNLOADACTIONS unloadactions;
int prio;
bool operator<(const SStaticPlugin& other) const
{
return prio<other.prio;
}
};
std::vector<SStaticPlugin>& get_static_plugin_registrations();
class RegisterPluginHelper
{
public:
RegisterPluginHelper(LOADACTIONS loadaction, UNLOADACTIONS unloadaction, int prio)
{
register_static_plugin(loadaction, unloadaction, prio);
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wangcichen/urbackup_backend.git
git@gitee.com:wangcichen/urbackup_backend.git
wangcichen
urbackup_backend
urbackup_backend
dev

搜索帮助