Skip to content

Commit

Permalink
Fixing Windows CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
jholloc committed Dec 5, 2023
1 parent ac29695 commit b8a12a1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions source/plugins/uda_plugin_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <string>

#include <plugins/pluginStructs.h>
#include <clientserver/export.h>

#include <unordered_map>
#include <boost/format.hpp>
Expand All @@ -24,7 +25,7 @@ typedef int (*plugin_function_type)(IDAM_PLUGIN_INTERFACE*);
class UDAPluginBase {
public:
typedef int (UDAPluginBase::*plugin_member_type)(IDAM_PLUGIN_INTERFACE*);
int call(IDAM_PLUGIN_INTERFACE* plugin_interface);
LIBRARY_API int call(IDAM_PLUGIN_INTERFACE* plugin_interface);

protected:
UDAPluginBase(std::string name, int version, std::string default_method, std::string help_file)
Expand All @@ -47,12 +48,12 @@ class UDAPluginBase {
virtual int init(IDAM_PLUGIN_INTERFACE* plugin_interface) = 0;
virtual int reset() = 0;

void register_method(const std::string& name, plugin_member_type plugin_method);
void register_function(const std::string& name, plugin_function_type plugin_function);
LIBRARY_API void register_method(const std::string& name, plugin_member_type plugin_method);
LIBRARY_API void register_function(const std::string& name, plugin_function_type plugin_function);

// Helper methods
void debug(const std::string& message);
void error(const std::string& message);
LIBRARY_API void debug(const std::string& message);
LIBRARY_API void error(const std::string& message);

template <typename T>
boost::optional<T> find_arg(IDAM_PLUGIN_INTERFACE* plugin_interface, const std::string& name, bool required=false)
Expand Down Expand Up @@ -108,11 +109,11 @@ class UDAPluginBase {
}

// Default method implementations
int help(IDAM_PLUGIN_INTERFACE* plugin_interface);
int version(IDAM_PLUGIN_INTERFACE* plugin_interface);
int build_date(IDAM_PLUGIN_INTERFACE* plugin_interface);
int default_method(IDAM_PLUGIN_INTERFACE* plugin_interface);
int max_interface_version(IDAM_PLUGIN_INTERFACE* plugin_interface);
LIBRARY_API int help(IDAM_PLUGIN_INTERFACE* plugin_interface);
LIBRARY_API int version(IDAM_PLUGIN_INTERFACE* plugin_interface);
LIBRARY_API int build_date(IDAM_PLUGIN_INTERFACE* plugin_interface);
LIBRARY_API int default_method(IDAM_PLUGIN_INTERFACE* plugin_interface);
LIBRARY_API int max_interface_version(IDAM_PLUGIN_INTERFACE* plugin_interface);

private:
int do_init(IDAM_PLUGIN_INTERFACE* plugin_interface);
Expand Down

0 comments on commit b8a12a1

Please sign in to comment.