Friday, January 18, 2019

My version of the binary interface

typedef struct{
XcbType * Connect;
XcbType * Window;
XcbType * GC;
XcbType * SetGC;
XcbType * Font;
XcbType * RGB;
XcbType * Text;
XcbType * Poll;
XcbType * Geometry;
} XcbTypes ;

 Use this, xchars will give you this pointer or a copy of the contents and the application snippet can have direct access to xcb the necessary xchars API. The snippet must carry the XCB device.

 Summary:

 All this work on figuring namespace led to more simplification. We can now link at run time to any loadable, using a header file to gain private access to the loadable names and entries. We can load that same snippet object at run time, and use the console exec to search the entries.

 When linking at compile time, the linked snippet names are masked from the console loop, hidden from the system. The same module can be loaded again, without conflict, I think.

 No compile time switches,  nothing. All snippets are PIC and shared, I think, it seems to be working. One simple rule:
The module universal entry must have the same, and unique, name as its file.

No comments: