[c-host] linux: updated to use the correct headers

This commit is contained in:
Geoffrey McRae 2019-05-09 19:07:23 +10:00
parent ba50fbdc3e
commit fc907b802f
4 changed files with 14 additions and 11 deletions

View file

@ -1 +1 @@
a12-158-g6f77ba8aea+1 a12-159-gba50fbdc3e+1

View file

@ -6,6 +6,7 @@ add_library(capture_XCB STATIC
) )
target_link_libraries(capture_XCB target_link_libraries(capture_XCB
lg_common
xcb xcb
xcb-shm xcb-shm
Xfixes Xfixes

View file

@ -17,9 +17,9 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include "capture/interface.h" #include "interface/capture.h"
#include "debug.h" #include "interface/platform.h"
#include "app.h" #include "common/debug.h"
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
@ -193,7 +193,7 @@ static CaptureResult xcb_capture()
return CAPTURE_RESULT_OK; return CAPTURE_RESULT_OK;
} }
static bool xcb_getFrame(CaptureFrame * frame) static CaptureResult xcb_getFrame(CaptureFrame * frame)
{ {
assert(this); assert(this);
assert(this->initialized); assert(this->initialized);
@ -207,7 +207,7 @@ static bool xcb_getFrame(CaptureFrame * frame)
if (!img) if (!img)
{ {
DEBUG_ERROR("Failed to get image reply"); DEBUG_ERROR("Failed to get image reply");
return false; return CAPTURE_RESULT_ERROR;
} }
frame->width = this->width; frame->width = this->width;
@ -219,12 +219,13 @@ static bool xcb_getFrame(CaptureFrame * frame)
free(img); free(img);
this->hasFrame = false; this->hasFrame = false;
return true; return CAPTURE_RESULT_OK;
} }
static bool xcb_getPointer(CapturePointer * pointer) static CaptureResult xcb_getPointer(CapturePointer * pointer)
{ {
return false; memset(pointer, 0, sizeof(CapturePointer));
return CAPTURE_RESULT_OK;
} }
struct CaptureInterface Capture_XCB = struct CaptureInterface Capture_XCB =

View file

@ -17,8 +17,9 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include "app.h" #include "interface/platform.h"
#include "debug.h" #include "common/debug.h"
#include <assert.h> #include <assert.h>
#include <getopt.h> #include <getopt.h>
#include <sys/stat.h> #include <sys/stat.h>