Discussion:
[Xcb] xcb-proto DBE extension
Lars Segerlund
2016-08-31 08:06:17 UTC
Permalink
Hi,

I made an dbe extension to xcb-proto and libxcb, ( from some xml I got
from Thien-Thi Nguyen a long time ago, I have a couple of questions.

First there is a type BUFFER_ATTRIBUTES which can be window or none, so
how do I specify this in the xml ?
( GetBackBufferAttributes ).
Thien-Ti suggested a union of window and none ... but I haven't found out
how to do this.
So how to handle this ?

Second what do I do to contribute ?

checkout latest apply build test and post to the list ?

( please reply to my mail also I am not on the mailinglist ... )

/ regards, Lars Segerlund.
Peter Harris
2016-08-31 16:06:03 UTC
Permalink
Post by Lars Segerlund
I made an dbe extension to xcb-proto and libxcb, ( from some xml I got
from Thien-Thi Nguyen a long time ago, I have a couple of questions.
First there is a type BUFFER_ATTRIBUTES which can be window or none, so
how do I specify this in the xml ?
( GetBackBufferAttributes ).
Thien-Ti suggested a union of window and none ... but I haven't found
out how to do this.
So how to handle this ?
You use an "altenum" (which means, may contain one of the enum, but is
not required). The "xproto:Window" enum contains only "None".

For example:

<import>xproto</import>
<field type="WINDOW" name="child" altenum="Window" />
Post by Lars Segerlund
Second what do I do to contribute ?
checkout latest apply build test and post to the list ?
Yes.
Post by Lars Segerlund
( please reply to my mail also I am not on the mailinglist ... )
The list is low volume and high signal. Subscribing to the list will
make the previous steps go more smoothly.

Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
***@opentext.com Toll Free: 1 877 359 4866
Peter Harris
2016-09-01 14:34:27 UTC
Permalink
Re-adding the xcb mailing list, as it was accidentally dropped from the
To: field.
Hi and thanks,
I joined the xcb mailinglist, and thanks for the tip.
So what you are saying is that I don't need a union ? ( i used xidunion
finally ... but will check ).
That is correct, you do not need (or want) a union.
I will checkout latest and rebuild and test.
I have one question though, can i tell configure to use my 'local'
xcb-proto when building ? I havent figured out the flag.
There's some pkgconfig magic, but I don't recall it off the top of my
head. I think you can point PKG_CONFIG_PATH at your xcb-proto directory
or something.
I have a couple of test programs which run fine using xlib, and I am
converting and testing now, ( static linking ) , which should be enough ?
If you're using libxcb, it ignores enum/altenum anyway. The enum/altenum
fields are used by languages with more strict type checks and by
dissectors (such as Wireshark).

Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
***@opentext.com Toll Free: 1 877 359 4866
Lars Segerlund
2016-09-02 07:37:33 UTC
Permalink
Hi again,

I am trying to build in a local directory, I don't want to mess up my X
installation since I am running Optimus PRIME ... and it's not super mature
... so I figured I would build and do a staticly linked binary for testing,
however even when setting PKG_CONFIG_PATH the make of libxcb fails with :

Making all in src
make[1]: Går till katalogen ”/home/ls/src/xdbe/mainline/libxcb/src”
make[1]: *** Ingen regel för att skapa målet ”/usr/local/share/xcb/”, som
behövs av ”xproto.c”. Stannar.
make[1]: LÀmnar katalogen ”/home/ls/src/xdbe/mainline/libxcb/src”
Makefile:791: receptet för målet ”all-recursive” misslyckades
make: *** [all-recursive] Fel 1

This does not happen when I build for libxcb-1.11.1 ... which is the
version the system is running, so I figure the build picks up the system
files in this case but not when doing a local build.

I know the autotools a bit, but I am not good with package-config .... so
any help appreciated.

My educated guess is that I need to do a 'dummy' install somewhere ,
specified with --prefix to configure, does this sound about right ?

Btw. the whole generation of protocoll bindings is SWEET ... very nice ...
a pleasant surprise.

/ regards, Lars Segerlund.
Post by Peter Harris
Re-adding the xcb mailing list, as it was accidentally dropped from the
To: field.
Hi and thanks,
I joined the xcb mailinglist, and thanks for the tip.
So what you are saying is that I don't need a union ? ( i used xidunion
finally ... but will check ).
That is correct, you do not need (or want) a union.
I will checkout latest and rebuild and test.
I have one question though, can i tell configure to use my 'local'
xcb-proto when building ? I havent figured out the flag.
There's some pkgconfig magic, but I don't recall it off the top of my
head. I think you can point PKG_CONFIG_PATH at your xcb-proto directory
or something.
I have a couple of test programs which run fine using xlib, and I am
converting and testing now, ( static linking ) , which should be enough ?
If you're using libxcb, it ignores enum/altenum anyway. The enum/altenum
fields are used by languages with more strict type checks and by
dissectors (such as Wireshark).
Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
Loading...