"Fossies" - the Fresh Open Source Software Archive

Member "FreeBASIC-1.05.0-linux-x86_64/include/freebasic/xcb/xcbext.bi" (31 Jan 2016, 3247 Bytes) of package /linux/privat/FreeBASIC-1.05.0-linux-x86_64.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Visual Basic source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 '' FreeBASIC binding for libxcb-1.11, xcb-proto-1.11
    2 ''
    3 '' based on the C header files:
    4 ''   Copyright (C) 2001-2004 Bart Massey and Jamey Sharp.
    5 ''   All Rights Reserved.
    6 ''
    7 ''   Permission is hereby granted, free of charge, to any person obtaining a
    8 ''   copy of this software and associated documentation files (the "Software"),
    9 ''   to deal in the Software without restriction, including without limitation
   10 ''   the rights to use, copy, modify, merge, publish, distribute, sublicense,
   11 ''   and/or sell copies of the Software, and to permit persons to whom the
   12 ''   Software is furnished to do so, subject to the following conditions:
   13 ''
   14 ''   The above copyright notice and this permission notice shall be included in
   15 ''   all copies or substantial portions of the Software.
   16 ''
   17 ''   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   18 ''   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   19 ''   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   20 ''   AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   21 ''   ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   22 ''   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   23 ''
   24 ''   Except as contained in this notice, the names of the authors or their
   25 ''   institutions shall not be used in advertising or otherwise to promote the
   26 ''   sale, use or other dealings in this Software without prior written
   27 ''   authorization from the authors.
   28 ''
   29 '' translated to FreeBASIC by:
   30 ''   Copyright © 2015 FreeBASIC development team
   31 
   32 #pragma once
   33 
   34 #include once "xcb.bi"
   35 
   36 extern "C"
   37 
   38 #define __XCBEXT_H
   39 
   40 type xcb_extension_t_
   41     name as const zstring ptr
   42     global_id as long
   43 end type
   44 
   45 type xcb_protocol_request_t
   46     count as uinteger
   47     ext as xcb_extension_t ptr
   48     opcode as ubyte
   49     isvoid as ubyte
   50 end type
   51 
   52 type xcb_send_request_flags_t as long
   53 enum
   54     XCB_REQUEST_CHECKED = 1 shl 0
   55     XCB_REQUEST_RAW = 1 shl 1
   56     XCB_REQUEST_DISCARD_REPLY = 1 shl 2
   57     XCB_REQUEST_REPLY_FDS = 1 shl 3
   58 end enum
   59 
   60 declare function xcb_send_request(byval c as xcb_connection_t ptr, byval flags as long, byval vector as iovec ptr, byval request as const xcb_protocol_request_t ptr) as ulong
   61 declare sub xcb_send_fd(byval c as xcb_connection_t ptr, byval fd as long)
   62 declare function xcb_take_socket(byval c as xcb_connection_t ptr, byval return_socket as sub(byval closure as any ptr), byval closure as any ptr, byval flags as long, byval sent as ulongint ptr) as long
   63 declare function xcb_writev(byval c as xcb_connection_t ptr, byval vector as iovec ptr, byval count as long, byval requests as ulongint) as long
   64 declare function xcb_wait_for_reply(byval c as xcb_connection_t ptr, byval request as ulong, byval e as xcb_generic_error_t ptr ptr) as any ptr
   65 declare function xcb_poll_for_reply(byval c as xcb_connection_t ptr, byval request as ulong, byval reply as any ptr ptr, byval error as xcb_generic_error_t ptr ptr) as long
   66 declare function xcb_get_reply_fds(byval c as xcb_connection_t ptr, byval reply as any ptr, byval replylen as uinteger) as long ptr
   67 declare function xcb_popcount(byval mask as ulong) as long
   68 declare function xcb_sumof(byval list as ubyte ptr, byval len as long) as long
   69 
   70 end extern