build: Conditionally compile senseApis
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
pkglib_LTLIBRARIES=libxcbXorg.la
|
||||
libxcbXorg_la_SOURCES=xcbXorg.cpp
|
||||
@@ -0,0 +1,28 @@
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
#include "xcbXorg.h"
|
||||
|
||||
|
||||
static CExportedImplexorApiDesc xcbXorgExportedImplexorApis[] =
|
||||
{
|
||||
{
|
||||
.name = "video-implexor"
|
||||
},
|
||||
{
|
||||
.name = NULL
|
||||
}
|
||||
};
|
||||
|
||||
static CSenseApiDesc xcbXorgApiDesc =
|
||||
{
|
||||
.name = "XcbXorg",
|
||||
.exportedImplexorApis = xcbXorgExportedImplexorApis
|
||||
};
|
||||
|
||||
extern HK_UNMANGLED getSenseApiDescFn HK_GET_SENSE_API_DESC_FN_NAME;
|
||||
|
||||
const CSenseApiDesc *HK_GET_SENSE_API_DESC_FN_NAME(void)
|
||||
{
|
||||
return &xcbXorgApiDesc;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef X11_XCB_API_H
|
||||
#define X11_XCB_API_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <user/senseApiDesc.h>
|
||||
|
||||
class Xcb_XorgApi
|
||||
{
|
||||
public:
|
||||
Xcb_XorgApi(const std::string& _displayName)
|
||||
: displayName(_displayName)
|
||||
{}
|
||||
|
||||
~Xcb_XorgApi() = default;
|
||||
|
||||
private:
|
||||
std::string displayName;
|
||||
};
|
||||
|
||||
#endif // X11_XCB_API_H
|
||||
Reference in New Issue
Block a user