namespace pkgmgr_server {
namespace request_handler {
-class AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API AbstractRequestHandler {
public:
virtual bool HandleRequest(std::string data) = 0;
namespace pkgmgr_server {
namespace request_handler {
-class GetAppctrlprivRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API GetAppctrlprivRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
namespace request_handler {
-class GetAppinfoRequestHandler : AbstractRequestHandler{
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API GetAppinfoRequestHandler : AbstractRequestHandler{
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
namespace request_handler {
-class GetCertRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API GetCertRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
namespace request_handler {
-class GetDatacontrolRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API GetDatacontrolRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
namespace request_handler {
-class GetPkginfoRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API GetPkginfoRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
#include <glib.h>
#include <dlog.h>
+#include "runner.hh"
+
int main() {
std::cout << "main start" << std::endl;
+ pkgmgr_server::Runner runner(10);
+
return 0;
}
\ No newline at end of file
namespace pkgmgr_server {
-class PkgRequest {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API PkgRequest {
public:
PkgRequest(int fd);
char* GetData();
namespace pkgmgr_server {
namespace request_handler {
-class QueryRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API QueryRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
-class Runner {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API Runner {
public:
Runner(int thread_num);
~Runner() = default;
namespace pkgmgr_server {
namespace request_handler {
-class SetCertRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API SetCertRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
namespace request_handler {
-class SetPkginfoRequestHandler : AbstractRequestHandler {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API SetPkginfoRequestHandler : AbstractRequestHandler {
public:
bool HandleRequest(std::string data);
namespace pkgmgr_server {
-class WorkerThread {
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+class EXPORT_API WorkerThread {
public:
WorkerThread(int num);
~WorkerThread() = default;