// Copyright 2004-present Facebook. All Rights Reserved. #pragma once #include #include #include "osquery/registry.h" #include "osquery/status.h" namespace osquery { class ConfigPlugin { public: virtual std::pair genConfig() = 0; virtual ~ConfigPlugin() {} protected: ConfigPlugin() {}; }; } DECLARE_REGISTRY(ConfigPlugins, std::string, std::shared_ptr) #define REGISTERED_CONFIG_PLUGINS REGISTRY(ConfigPlugins) #define REGISTER_CONFIG_PLUGIN(name, decorator) \ REGISTER(ConfigPlugins, name, decorator)