From cba98d852c26d224ffcfa67902b041c69f9d0e68 Mon Sep 17 00:00:00 2001 From: Eric Jiang Date: Sat, 31 Oct 2020 19:57:39 -0700 Subject: [PATCH] Add notes about where the header code came from --- xdo_build.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xdo_build.py b/xdo_build.py index 2e71dc1..30d1391 100644 --- a/xdo_build.py +++ b/xdo_build.py @@ -2,7 +2,12 @@ from cffi import 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(""" /** @@ -32,10 +37,6 @@ typedef unsigned long Atom; /* Also in Xdefs.h */ // copied from Xlib.h struct _XDisplay; 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; // based on types.h