From 135fb032e940ce226c9feb13e6e903f3ecbc5eb0 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 2 Sep 2015 00:04:32 -0700 Subject: Eliminate calls back to X server or font server functions by name (v4) This eliminates the weak symbol adventures and makes all of the calls back to the X server or Font server go through a table of functions instead, clarifying the required API. As this is a rather major change to the API for the library, it now installs itself as libXfont2 instead of libXfont, and the package config file is now xfont2.pc. All of the installed headers remain the same as the original library; there's now a new include file, libxfont2.h, which defines the X server and Font server interfaces. This moves util/atom.c to stubs/atom.c and reformats that file, hence the diff being larger than it would otherwise be. v2: Rename to libXfont2 instead of libXfont_2 as suggested by Emil Velikov Fix whitespace in stubs/atom.c, which was moved from util/ v3: Remove select masks from API. Expose single 'font_init' function for all library initialization. v4: Change name of distributed tarballs to libXfont2 as well Signed-off-by: Keith Packard --- xfont2.pc.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 xfont2.pc.in (limited to 'xfont2.pc.in') diff --git a/xfont2.pc.in b/xfont2.pc.in new file mode 100644 index 0000000..ac3f53a --- /dev/null +++ b/xfont2.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Xfont2 +Description: X font Library version 2 +Version: @VERSION@ +Requires: xproto fontsproto +Requires.private: fontenc @FREETYPE_REQUIRES@ +Cflags: -I${includedir} +Libs: -L${libdir} -lXfont2 +Libs.private: @Z_LIBS@ -lm -- cgit v1.2.3