Add notes about where the header code came from

This commit is contained in:
Eric Jiang 2020-10-31 19:57:39 -07:00
parent 07759535c2
commit cba98d852c

View File

@ -2,7 +2,12 @@ from cffi import FFI
ffibuilder = FFI() ffibuilder = FFI()
# copied from xdo.h # Most of the code in this cdef call was copied from xdo.h from xdotool, which
# is available under the 3-clause BSD license. Find the original code and
# license at: https://github.com/jordansissel/xdotool
#
# The lines marked "copied from X.h" and "copied from "Xlib.h" were adapted
# from X.org code.
ffibuilder.cdef(""" ffibuilder.cdef("""
/** /**
@ -32,10 +37,6 @@ typedef unsigned long Atom; /* Also in Xdefs.h */
// copied from Xlib.h // copied from Xlib.h
struct _XDisplay; struct _XDisplay;
typedef struct _XDisplay Display; typedef struct _XDisplay Display;
typedef struct {
int max_keypermod; /* The server's max # of keys per modifier */
KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */
} XModifierKeymap;
struct Screen; struct Screen;
// based on types.h // based on types.h