espplugin.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef __ESPPLUGIN_HPP__
  14. #define __ESPPLUGIN_HPP__
  15. //SCM Interfaces
  16. #include "esp.hpp"
  17. #ifndef ESP_BUILTIN
  18. #define ESP_FACTORY DECL_EXPORT
  19. #endif
  20. typedef IEspService * (*esp_service_factory_t)(const char *name, const char* type, IPropertyTree* cfg, const char *process);
  21. typedef IEspRpcBinding * (*esp_binding_factory_t)(const char *name, const char* type, IPropertyTree* cfg, const char *process);
  22. typedef IEspProtocol * (*esp_protocol_factory_t)(const char *name, const char* type, IPropertyTree* cfg, const char *process);
  23. typedef void (*start_esdl_monitor_t)();
  24. typedef void (*stop_esdl_monitor_t)();
  25. extern "C" {
  26. ESP_FACTORY IEspService *esp_service_factory(const char *name, const char* type, IPropertyTree* cfg, const char *process);
  27. ESP_FACTORY IEspRpcBinding *esp_binding_factory(const char *name, const char* type, IPropertyTree* cfg, const char *process);
  28. ESP_FACTORY IEspProtocol *esp_protocol_factory(const char *name, const char* type, IPropertyTree* cfg, const char *process);
  29. };
  30. #endif //__ESPPLUGIN_HPP__