xine-lib: xine-lib-1.2.12/src/input/pnm.h File Reference

xine-lib 1.2.12

Typedefs | Functions
pnm.h File Reference
`#include <inttypes.h>`
`#include <xine/xine_internal.h>`

Go to the source code of this file.

## Typedefs
typedef struct pnm_s | pnm_t

## Functions
pnm_t * | pnm_connect (xine_stream_t *stream, const char *url)
int | pnm_read (pnm_t *this, char *data, int len)
void | pnm_close (pnm_t *this)
int | pnm_peek_header (pnm_t *this, char *data, int maxsize)

## Typedef Documentation

## ◆ pnm_t

typedef struct pnm_s pnm_t

## Function Documentation

## ◆ pnm_close()

void pnm_close | ( | pnm_t * | this | ) |

References _x_io_tcp_close(), pnm_s::host, pnm_s::path, pnm_s::s, pnm_s::stream, and pnm_s::url.

Referenced by pnm_connect(), and pnm_plugin_dispose().

## ◆ pnm_connect()

pnm_t * pnm_connect | ( | xine_stream_t * | stream,
|  | const char * | url
| ) |  |

References _, _x_io_tcp_connect(), pnm_s::buffer, pnm_s::header, pnm_s::header_len, pnm_s::host, lprintf, NULL, pnm_s::packet, pnm_s::path, pnm_available_bandwidths, pnm_close(), pnm_get_headers(), pnm_response, pnm_send_request(), pnm_send_response(), pnm_s::port, pnm_s::recv, pnm_s::recv_read, pnm_s::recv_size, pnm_s::s, pnm_s::stream, pnm_s::ts_last, pnm_s::url, xine_stream_s::xine, XINE_VERBOSITY_LOG, and xprintf.

Referenced by pnm_plugin_open().

## ◆ pnm_peek_header()

int pnm_peek_header | ( | pnm_t * | this,
|  | char * | data,
|  | int | maxsize
| ) |  |

Referenced by pnm_plugin_get_optional_data().

## ◆ pnm_read()

int pnm_read | ( | pnm_t * | this,
|  | char * | data,
|  | int | len
| ) |  |

References lprintf, and pnm_get_stream_chunk().

Referenced by pnm_plugin_read().