Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nexgb: relicense xgbgen to 0BSD | Přemysl Janouch | 2018-09-30 | 2 | -13/+13 |
| | | | | | | | Doing what the fuck I want to. Included BurntSushi as a copyright holder because under the Berne convention he totally is. | ||||
* | nexgb: rewrite import paths | Přemysl Janouch | 2018-09-21 | 35 | -78/+78 |
| | |||||
* | nexgb: post-merge fixups and cleanups | Přemysl Janouch | 2018-09-08 | 14 | -136/+111 |
| | | | | | | | | | AUTHORS, CONTRIBUTORS: still useful, add people from git log, clean up. LICENSE: Google doesn't really grant you shit anymore. The EU doesn't have software patents either, so it doesn't affect me directly. README, doc.go: erase mentions of unmaintained xgbutil. | ||||
* | Regenerated from xcb-proto 1.12 | aarzilli | 2018-09-08 | 13 | -264/+667 |
| | |||||
* | Changed xgbgen to support xcb-proto 1.12 | aarzilli | 2018-09-08 | 9 | -158/+174 |
| | | | | | | | | * Added minimal support for switch fields. * Changed the way Size is calculated to accomodate for lists inside structs (added to randr) * Removed heuristic to place alignment gaps, they are now explicitly described in xml | ||||
* | Makefile: do not redefine $XPROTO if it's already defined. | aarzilli | 2018-09-08 | 1 | -0/+2 |
| | |||||
* | Remove stray format char in randr example | Rabin Vincent | 2018-09-08 | 1 | -1/+1 |
| | |||||
* | fix structs with field name of 'Bytes' | Andrew Gallant | 2018-09-08 | 4 | -7/+11 |
| | | | | | (it conflict with a method of the same name that is generated for all such structs) | ||||
* | Handle wildcard values in Xauthority file | aarzilli | 2018-09-08 | 1 | -1/+5 |
| | | | | | | | | | | | Some field values in the Xauthority file have special meanings: - a value of 65535 in the 'family' field means that the entry will match a connection of any family on any address - an empty string in the 'display number' field means that the entry will match a connection on any display number This behaviour is documented at: https://cgit.freedesktop.org/xorg/lib/libXau/tree/AuGetBest.c#n109 | ||||
* | Read/Write mutex for Extensions map | aarzilli | 2018-09-08 | 29 | -103/+2526 |
| | |||||
* | sendRequest reads req.buf after closing req.seq | aarzilli | 2018-09-08 | 1 | -1/+1 |
| | | | | | NewRequest says you can avoid reallocating a new buffer for each request by calling it directly. This is not true if req.seq is closed before req.buf is read. | ||||
* | Remove panics/fatal errors. | Andrew Gallant | 2018-09-08 | 2 | -40/+28 |
| | | | | | | | | Fixes #9. This makes shutdown a little more graceful, but there's more work to be done here. Namely, all outstanding cookies need to be given the error, otherwise they will block forever. | ||||
* | assign a sequence id to the cookie before returning from Conn.NewRequest | Bryan Matsuo | 2018-09-08 | 1 | -1/+7 |
| | |||||
* | add a new api: NewConnNet | fangyuanziti | 2018-09-08 | 2 | -0/+31 |
| | |||||
* | Formatting and 80 cols. | Andrew Gallant | 2018-09-08 | 3 | -19/+11 |
| | |||||
* | Fix Issue #21: automatic calculation of alignment padding after lists | aarzilli | 2018-09-08 | 30 | -474/+630 |
| | |||||
* | examples:randr use info.Connection to detect whether there has any Randr.Modes | snyh | 2018-09-08 | 1 | -1/+1 |
| | |||||
* | example/randr: check the GetOutputInfo's mode length (virtual head can have ↵ | snyh | 2018-09-08 | 1 | -4/+6 |
| | | | | zero mode) | ||||
* | Use consistent extension names. Close #6. | Andrew Gallant | 2018-09-08 | 11 | -391/+389 |
| | |||||
* | It appears that the "Str" type (which is built into the core X protocol) | Andrew Gallant | 2018-09-08 | 10 | -49/+52 |
| | | | | | | doesn't specify any padding. So it has to be treated as a special case. Close #12. | ||||
* | shortcuts for the lazy | Andrew Gallant | 2018-09-08 | 1 | -0/+4 |
| | |||||
* | When writing, don't pad the length of bytes produced from inner | Andrew Gallant | 2018-09-08 | 10 | -57/+57 |
| | | | | | | structs/unions. Each type should take care of its own padding. Close #14. | ||||
* | Regenerate xgb with latest XML descriptions. | Andrew Gallant | 2018-09-08 | 7 | -45/+2454 |
| | |||||
* | Fix fmt'd output for union list writing. | Andrew Gallant | 2018-09-08 | 2 | -2/+2 |
| | |||||
* | Ignore the "fd" field for the time being (for the shm extension only). | Andrew Gallant | 2018-09-08 | 1 | -2/+2 |
| | |||||
* | The `sync` and `xinput` extensions now use the `switch` field, which | Andrew Gallant | 2018-09-08 | 3 | -9616/+6 |
| | | | | | | | XGB does not currently support. Therefore, I'm removing the sync and xinput extensions. This affects issues #11 and #13. | ||||
* | Export the logger (again) | Axel Wagner | 2018-09-08 | 3 | -99/+18 |
| | | | | | | | | Just enabling or disabling logging falls short of the power of interfaces of go. A user is forced to either accept the logging to stderr in the format defined by xgb or disable logging alltogether. By exporting the logger, we can actually let the user decide where to log in what format. | ||||
* | Padding on a list is on the length of the list. | Andrew Gallant | 2018-09-08 | 17 | -222/+222 |
| | | | | | There was a bug where padding was being computed on each element of the list. Close #5. | ||||
* | Don't needlessly change source files every time. | Andrew Gallant | 2018-09-08 | 29 | -118/+30 |
| | |||||
* | Update to latest xproto XML. | Andrew Gallant | 2018-09-08 | 28 | -30167/+30267 |
| | |||||
* | Updated to work with new xproto XML files. | Andrew Gallant | 2018-09-08 | 5 | -10/+45 |
| | | | | | Namely, the "doc" element is ignored. Also, I've sorted everything before output so that diff isn't completely useless. | ||||
* | Fixed a nasty bug where closing could cause ReadFull to crash | Andrew Gallant | 2018-09-08 | 1 | -11/+29 |
| | | | | the program. Close #4. | ||||
* | gofmt | Andrew Gallant | 2018-09-08 | 8 | -30/+30 |
| | |||||
* | Provide access to the X display number in the XGB Conn. | Andrew Gallant | 2018-09-08 | 2 | -3/+6 |
| | |||||
* | The hack continues. I've increased the event channel buffer. I know I'm | Andrew Gallant (Ocelot) | 2018-09-08 | 1 | -1/+2 |
| | | | | | | | | goofing here. What I'd personally like to do is just use an "infinite" channel. That is, push the limit of how many events can be processed to the machine and not set an artificial limit in XGB. Some day... | ||||
* | Tests were move to xproto package a long time ago. Update README. | Andrew Gallant (Ocelot) | 2018-09-08 | 1 | -1/+1 |
| | |||||
* | Doc fixes and stop exporting ReplyChecked and ReplyUnchecked | Andrew Gallant (Ocelot) | 2018-09-08 | 2 | -13/+36 |
| | |||||
* | Refresh build. Eh. | Andrew Gallant (Ocelot) | 2018-09-08 | 28 | -188/+188 |
| | |||||
* | Add rules for installing all packages. | Andrew Gallant (Ocelot) | 2018-09-08 | 1 | -0/+10 |
| | |||||
* | Doc fix. | Andrew Gallant (Ocelot) | 2018-09-08 | 1 | -1/+1 |
| | |||||
* | Benchmark with gomaxprocs=3 too | Andrew Gallant (Ocelot) | 2018-09-08 | 1 | -1/+1 |
| | |||||
* | A pathological example for profiling purposes. Use 'make test'. | Andrew Gallant (Ocelot) | 2018-09-08 | 3 | -0/+106 |
| | |||||
* | Add some style guidelines. | Andrew Gallant (Ocelot) | 2018-09-08 | 1 | -0/+29 |
| | |||||
* | auth: use encoding.binary | Paul Sbarra | 2012-05-28 | 1 | -23/+13 |
| | |||||
* | Bug fix in the generator that was outputting %(MISSING) crud. | Andrew Gallant (Ocelot) | 2012-05-26 | 29 | -332/+332 |
| | |||||
* | Doc touchups. | Andrew Gallant (Ocelot) | 2012-05-26 | 3 | -17/+22 |
| | |||||
* | Add new logger type so that it can be shut off. | Andrew Gallant (Ocelot) | 2012-05-16 | 3 | -17/+100 |
| | |||||
* | export logger so it can be disabled | Andrew Gallant (Ocelot) | 2012-05-16 | 2 | -15/+15 |
| | |||||
* | close channels. | Andrew Gallant (Ocelot) | 2012-05-12 | 1 | -1/+13 |
| | |||||
* | A more idiomatic way of trying a non-blocking send on a buffered channel | Andrew Gallant (Ocelot) | 2012-05-12 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | and falling back to a blocking send inside a goroutine. This really needs to be fixed. The situation only arises when events are sent and aren't pulled off the channel using {Wait,Poll}ForEvent. Namely, if the event send blocks, the entire program will deadlock. Using a goroutine is not ideal because we lose a guarantee of order: that events are processed in the order of their arrival. However, it seems OK as a temporary band-aide for a situation that probably doesn't arise too often. What I need to do is implement a dynamic queue. Here is a reference implementation: http://play.golang.org/p/AiHBsxTFpj |