Current File : //usr/share/man/man3xcb/xcb_selinux_get_device_context.3xcb
'\" t
.TH xcb_selinux_get_device_context 3xcb  2011-06-11 "XCB" "XCB Requests"
.ad l
.SH NAME
xcb_selinux_get_device_context \- 
.SH SYNOPSIS
.nf
\fBcc\fR [ \fIflag\fR\&.\&.\&. ] \fIfile\fR\&.\&.\&. \fB\-lxcb\fR [ \fIlibrary\fR\&.\&.\&. ]
.fi
.sp
.nf
\fBcc\fR [ \fIflag\fR\&.\&.\&. ] `pkg-config --cflags *` \fIfile\fR\&.\&.\&. `pkg-config --libs *` 
.fi
.hy 0
.B #include <xcb/xselinux.h>
.SS Request function
.HP
xcb_selinux_get_device_context_cookie_t \fBxcb_selinux_get_device_context\fP(xcb_connection_t\ *\fIconn\fP, uint32_t\ \fIdevice\fP);
.PP
.SS Reply datastructure
.nf
.sp
typedef struct xcb_selinux_get_device_context_reply_t {
    uint8_t  \fIresponse_type\fP;
    uint8_t  \fIpad0\fP;
    uint16_t \fIsequence\fP;
    uint32_t \fIlength\fP;
    uint32_t \fIcontext_len\fP;
    uint8_t  \fIpad1\fP[20];
} \fBxcb_selinux_get_device_context_reply_t\fP;
.fi
.SS Reply function
.HP
xcb_selinux_get_device_context_reply_t *\fBxcb_selinux_get_device_context_reply\fP(xcb_connection_t\ *\fIconn\fP, xcb_selinux_get_device_context_cookie_t\ \fIcookie\fP, xcb_generic_error_t\ **\fIe\fP);
.SS Reply accessors
.HP
char *\fBxcb_selinux_get_device_context_context\fP(const xcb_selinux_get_device_context_request_t *\fIreply\fP);
.HP
int \fBxcb_selinux_get_device_context_context_length\fP(const xcb_selinux_get_device_context_reply_t *\fIreply\fP);
.HP
xcb_generic_iterator_t \fBxcb_selinux_get_device_context_context_end\fP(const xcb_selinux_get_device_context_reply_t *\fIreply\fP);
.br
.hy 1
.SH REQUEST ARGUMENTS
.IP \fIconn\fP 1i
The XCB connection to X11.
.IP \fIdevice\fP 1i
TODO: NOT YET DOCUMENTED.
.SH REPLY FIELDS
.IP \fIresponse_type\fP 1i
The type of this reply, in this case \fIXCB_SELINUX_GET_DEVICE_CONTEXT\fP. This field is also present in the \fIxcb_generic_reply_t\fP and can be used to tell replies apart from each other.
.IP \fIsequence\fP 1i
The sequence number of the last request processed by the X11 server.
.IP \fIlength\fP 1i
The length of the reply, in words (a word is 4 bytes).
.IP \fIcontext_len\fP 1i
TODO: NOT YET DOCUMENTED.
.SH DESCRIPTION
.SH RETURN VALUE
Returns an \fIxcb_selinux_get_device_context_cookie_t\fP. Errors have to be handled when calling the reply function \fIxcb_selinux_get_device_context_reply\fP.

If you want to handle errors in the event loop instead, use \fIxcb_selinux_get_device_context_unchecked\fP. See \fBxcb-requests(3)\fP for details.
.SH ERRORS
This request does never generate any errors.
.SH SEE ALSO
.SH AUTHOR
Generated from xselinux.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

.\" Begin Oracle Solaris update
.SH "ATTRIBUTES"
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
allbox;
cw(2.750000i)| cw(2.750000i)
lw(2.750000i)| lw(2.750000i).
ATTRIBUTE TYPE	ATTRIBUTE VALUE
Availability	x11/library/libxcb
Interface Stability	Volatile
MT-Level	Safe
.TE
.sp
.\" End Oracle Solaris update