-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix, AppImage] Add libXss.so.1 dummy (#826)
References <koreader/koreader#4627>.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Dummy symbol resolver for AppImage | ||
// See https://github.com/koreader/koreader/issues/4627 | ||
// Thanks to https://github.com/AppImage/pkg2appimage/issues/127#issuecomment-278397037 | ||
#include <X11/Xlib.h> | ||
typedef unsigned long ulong; | ||
typedef unsigned int uint; | ||
typedef struct { Window window; int state; int kind; ulong til_or_since; ulong idle; ulong eventMask; } XScreenSaverInfo; | ||
Bool XScreenSaverQueryExtension(Display *dpy, int *event_base_return, int *error_base_return){} | ||
Status XScreenSaverQueryVersion(Display *dpy, int *major_version_return, int *minor_version_return){} | ||
XScreenSaverInfo *XScreenSaverAllocInfo(void){} | ||
Status XScreenSaverQueryInfo(Display *dpy, Drawable drawable, XScreenSaverInfo *saver_info){} | ||
void XScreenSaverSelectInput(register Display *dpy, Drawable drawable, ulong mask){} | ||
void XScreenSaverSetAttributes(Display *dpy, Drawable drawable, int x, int y, uint width, uint height, | ||
uint border_width, int depth, uint class, Visual *visual, ulong valuemask, XSetWindowAttributes *attributes){} | ||
void XScreenSaverUnsetAttributes(register Display *dpy, Drawable drawable){} | ||
Status XScreenSaverRegister(Display *dpy, int screen, XID xid, Atom type){} | ||
Status XScreenSaverUnregister(Display *dpy, int screen){} | ||
Status XScreenSaverGetRegistered(Display *dpy, int screen, XID *xid, Atom *type){} | ||
void XScreenSaverSuspend(Display *dpy, Bool suspend){} |