| AT-SPI C Bindings Reference Manual | ||||
|---|---|---|---|---|
enum AccessibleStreamableContentSeekType;void AccessibleStreamableContent_freeContentTypesList (AccessibleStreamableContent *obj,char **content_types);void AccessibleStreamableContent_ref (AccessibleStreamableContent *obj);void AccessibleStreamableContent_unref (AccessibleStreamableContent *obj);char ** AccessibleStreamableContent_getContentTypes (AccessibleStreamableContent *obj);SPIBoolean AccessibleStreamableContent_open (AccessibleStreamableContent *obj, constchar *content_type);long AccessibleStreamableContent_seek (AccessibleStreamableContent *obj, longint offset, AccessibleStreamableContentSeekType seek_type);SPIBoolean AccessibleStreamableContent_read (AccessibleStreamableContent *obj,void *buff, longint nbytes, unsignedint read_type);SPIBoolean AccessibleStreamableContent_close (AccessibleStreamableContent *obj);
typedef enum
{
SPI_STREAM_SEEK_SET,
SPI_STREAM_SEEK_CUR,
SPI_STREAM_SEEK_END
} AccessibleStreamableContentSeekType;
The seek type for a specified offset in AccessibleStreamableContent_seek.
void AccessibleStreamableContent_freeContentTypesList (AccessibleStreamableContent *obj,char **content_types);
Free the memory associated with a call to AccessibleStreamableContent_getContentTypes, once the result has been used.
|
the AccessibleStreamableContent implementor on which to operate. |
|
a list of content types previously returned by AccessibleStreamableContent_getContentTypes. |
Since AT-SPI 1.4
void AccessibleStreamableContent_ref (AccessibleStreamableContent *obj);
Increment the reference count for an
Since: AT-SPI 1.4
|
a pointer to the |
void AccessibleStreamableContent_unref (AccessibleStreamableContent *obj);
Decrement the reference count for an
Since: AT-SPI 1.4
|
a pointer to the |
char ** AccessibleStreamableContent_getContentTypes (AccessibleStreamableContent *obj);
Get a list of strings containing the content mimetypes available from an
Since: AT-SPI 1.4
|
a pointer to the |
Returns : |
an array of strings, terminated by a NULL string, specifying the mimetypes for which the streamed content is available. |
SPIBoolean AccessibleStreamableContent_open (AccessibleStreamableContent *obj, constchar *content_type);
Open a streaming connection to an AccessibleStreamableContent implementor, of a particular content type. Note that a client may only have one open stream per streamable interface instance in the current implementation.
Since: AT-SPI 1.4
|
a pointer to the |
|
a string specifying the content type to retrieve (should match one
of the return strings from #AccessibleStreamableContent_getContentTypes()).
|
Returns : |
|
long AccessibleStreamableContent_seek (AccessibleStreamableContent *obj, longint offset, AccessibleStreamableContentSeekType seek_type);
Cause the current streamable content connection (obtained via
#AccessibleStreamableContent_open()) to seek to a particular offset in the
stream.
Since: AT-SPI 1.4
|
a pointer to the |
|
a long int specifying the offset into the stream. |
|
an enum indicating the seek offset type, may be SEEK_SET,
SEEK_CUR, SEEK_END (as in the lseek() |
Returns : |
|
SPIBoolean AccessibleStreamableContent_read (AccessibleStreamableContent *obj,void *buff, longint nbytes, unsignedint read_type);
Copy (read) bytes from the currently open streamable content connection to a buffer. This is a blocking API, in the sense that it does not return until the bytes have been read, or an error condition is detected.
Since: AT-SPI 1.4
|
a pointer to the |
|
a pointer to a buffer into which the resulting bytes read from the stream are to be written. |
|
a long integer indicating the number of bytes to read/write. |
|
currently unused, specifies behavior of reads for streamed content if blocking is not allowed, etc. |
Returns : |
an integer indicating the number of bytes read, or -1 on error. |
SPIBoolean AccessibleStreamableContent_close (AccessibleStreamableContent *obj);
Close the current streaming connection to an AccessibleStreamableContent implementor. This must be called before any subsequent AccessibleStreamableContent_open calls on the same object.
Since: AT-SPI 1.4
|
a pointer to the |
Returns : |
|