Finally had a go at getting my FBReader idea to work, but I'm stuck on some c/c++ incompatibility. xEPDmgr is c, FBReader is C++.
I've done:
Code:
extern "C" {
#include "xepdmgrclient.h"
}
which produces on compile:
Code:
ZLGtkViewWidget.cpp: In function `void doPaint(GtkWidget*, GdkEventExpose*, ZLGtkViewWidget*)':
ZLGtkViewWidget.cpp:114: error: invalid conversion from `int' to `sEpd*'
ZLGtkViewWidget.cpp:114: error: initializing argument 1 of `int EpdRefreshAuto(sEpd*, int)'
ZLGtkViewWidget.cpp:121: error: invalid conversion from `int' to `sEpd*'
ZLGtkViewWidget.cpp:121: error: initializing argument 1 of `int EpdCancel(sEpd*)'
ZLGtkViewWidget.cpp:122: error: invalid conversion from `int' to `sEpd*'
ZLGtkViewWidget.cpp:122: error: initializing argument 1 of `int EpdRefreshAuto(sEpd*, int)'
ZLGtkViewWidget.cpp: At global scope:
ZLGtkViewWidget.cpp:320: warning: unused parameter 'track'
make[2]: *** [ZLGtkViewWidget.o] Error 1
Very similar errors are produced when trying to compile xepdmgrclient.c to an object file with g++.
I'm a bit out of my depth here with c/c++ compatibility, anyone got a quick fix?