projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prototype API conversion tool for upcoming lowercased XCB API.
[free-sw/xcb/libxcb]
/
src
/
xcbint.h
diff --git
a/src/xcbint.h
b/src/xcbint.h
index
0e24d72
..
9048e9d
100644
(file)
--- a/
src/xcbint.h
+++ b/
src/xcbint.h
@@
-32,6
+32,10
@@
#include "config.h"
#endif
#include "config.h"
#endif
+#ifdef GCC_HAS_VISIBILITY
+#pragma GCC visibility push(hidden)
+#endif
+
enum workarounds {
WORKAROUND_NONE,
WORKAROUND_GLX_GET_FB_CONFIGS_BUG
enum workarounds {
WORKAROUND_NONE,
WORKAROUND_GLX_GET_FB_CONFIGS_BUG
@@
-39,6
+43,8
@@
enum workarounds {
#define XCB_PAD(i) (-(i) & 3)
#define XCB_PAD(i) (-(i) & 3)
+#define XCB_SEQUENCE_COMPARE(a,op,b) ((int) ((a) - (b)) op 0)
+
/* xcb_list.c */
typedef void (*XCBListFreeFunc)(void *);
/* xcb_list.c */
typedef void (*XCBListFreeFunc)(void *);
@@
-59,8
+65,6
@@
typedef struct _xcb_out {
char queue[4096];
int queue_len;
char queue[4096];
int queue_len;
- struct iovec *vec;
- int vec_len;
unsigned int request;
unsigned int request_written;
unsigned int request;
unsigned int request_written;
@@
-72,9
+76,8
@@
typedef struct _xcb_out {
int _xcb_out_init(_xcb_out *out);
void _xcb_out_destroy(_xcb_out *out);
int _xcb_out_init(_xcb_out *out);
void _xcb_out_destroy(_xcb_out *out);
-int _xcb_out_write(XCBConnection *c);
-int _xcb_out_write_block(XCBConnection *c, struct iovec *vector, size_t count);
-int _xcb_out_flush(XCBConnection *c);
+int _xcb_out_send(XCBConnection *c, struct iovec **vector, int *count);
+int _xcb_out_flush_to(XCBConnection *c, unsigned int request);
/* xcb_in.c */
/* xcb_in.c */
@@
-86,7
+89,9
@@
typedef struct _xcb_in {
char queue[4096];
int queue_len;
char queue[4096];
int queue_len;
+ unsigned int request_expected;
unsigned int request_read;
unsigned int request_read;
+ unsigned int request_completed;
struct reply_list *current_reply;
struct reply_list **current_reply_tail;
struct reply_list *current_reply;
struct reply_list **current_reply_tail;
@@
-138,7
+143,7
@@
void _xcb_ext_destroy(XCBConnection *c);
struct XCBConnection {
/* constant data */
struct XCBConnection {
/* constant data */
- XCB
ConnSetupSuccessRe
p *setup;
+ XCB
Setu
p *setup;
int fd;
/* I/O data */
int fd;
/* I/O data */
@@
-151,5
+156,15
@@
struct XCBConnection {
_xcb_xid xid;
};
_xcb_xid xid;
};
-int _xcb_conn_wait(XCBConnection *c, const int should_write, pthread_cond_t *cond);
+int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count);
+
+
+/* xcb_auth.c */
+
+int _xcb_get_auth_info(int fd, XCBAuthInfo *info);
+
+#ifdef GCC_HAS_VISIBILITY
+#pragma GCC visibility pop
+#endif
+
#endif
#endif