Linux Manuals session 3

Section 3: library functions

  • |

    librrd (3) Linux Manual Page

    librrd – RRD library functions Descriptionlibrrd contains most of the functionality in RRDTool. The command line utilities and language bindings are often just wrappers around the code contained in librrd. This manual page documents the librrd API. NOTE: This document is a work in progress, and should be considered incomplete as long as this warning…

  • |

    librasqal (3) Linux Manual Page

    librasqal – Rasqal RDF query library Synopsis#include <rasqal.h>   rasqal_world*world=rasqal_new_world(); rasqal_query_results *results; raptor_uri *base_uri=raptor_new_uri("http://example.org/foo"); rasqal_query *rq=rasqal_new_query(world,"rdql",NULL); const char *query_string="select * from <http://example.org/data.rdf>";   rasqal_query_prepare(rq,query_string,base_uri); results=rasqal_query_execute(rq); while(!rasqal_query_results_finished(results)) {  for(i=0;i<rasqal_query_results_get_bindings_count(results);i++) {   const char *name=rasqal_query_results_get_binding_name(results,i);   rasqal_literal *value=rasqal_query_results_get_binding_value(results,i);   /* … */  }  rasqal_query_results_next(results); } rasqal_free_query_results(results); rasqal_free_query(rq); raptor_free_uri(base_uri); rasqal_free_world(world); cc prog.c -o prog `pkg-config rasqal –cflags` `pkg-config rasqal –libs` DescriptionThe Rasqal…

  • |

    libraptor2 (3) Linux Manual Page

    libraptor2 – Raptor RDF syntax library 2.0 Synopsis#include <raptor2.h> world=raptor_new_world(); raptor_parser *p=raptor_new_parser(world,rdfxml); raptor_set_statement_handler(p,NULL,print_triples); raptor_uri *file_uri=raptor_new_uri(world,http://example.org/); raptor_parser_parse_file(p,file_uri,base_uri); raptor_parser_parse_uri(p,uri,NULL); raptor_free_parser(p); raptor_free_uri(file_uri); raptor_free_world(world); cc prog.c -o prog `pkg-config raptor2 –cflags` `pkg-config raptor2 –libs` DescriptionThe Raptor library provides a high-level interface to a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or…

  • |

    libraptor (3) Linux Manual Page

    libraptor – Raptor RDF parser and serializer library Synopsis#include <raptor.h> raptor_init(); raptor_parser *p=raptor_new_parser(rdfxml); raptor_set_statement_handler(p,NULL,print_triples); raptor_uri *file_uri=raptor_new_uri(http://example.org/); raptor_parse_file(p,file_uri,base_uri); raptor_parse_uri(p,uri,NULL); raptor_free_parser(p); raptor_free_uri(file_uri); raptor_finish(); cc file.c -lraptor DescriptionThe Raptor library provides a high-level interface to a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into syntaxes. The…

  • |

    libquvi (3) Linux Manual Page

    libquvi – Overview of query media library Descriptionlibquvi is a cross-platform library for parsing flash media stream URLs with C API. The term “quvi” is a shorthand for “query video”. API documentation<http://quvi.sourceforge.net/doc/> Motivationlibquvi originates from the idea of allowing users to view the videos without having to install or use flash. It is a “workaround”,…

  • |

    libppm (3) Linux Manual Page

    libppm – functions for PPM programs Synopsis#include <netpbm/ppm.h> void ppm_init(int * argcP,   char * argv[]); pixel ** ppm_allocarray( int cols,int rows); pixel * ppm_allocrow(int cols); void ppm_freearray(pixel ** pixels,   int rows); void ppm_freerow(pixel * pixelrow); void ppm_readppminit(FILE * fp,   int * colsP,   int * rowsP, pixval * maxvalP,int * formatP ); void ppm_readppmrow(FILE *fp,   pixel * pixelrow,   int cols,   pixval maxval,   int format); pixel ** ppm_readppm(FILE *…

  • |

    libpowerman (3) Linux Manual Page

    libpowerman – PowerMan Client API Synopsis#include <libpowerman.h> pm_err_t pm_connect (char *server, void *arg, pm_handle_t *hp, int flags); void pm_disconnect (pm_handle_t h); pm_err_t pm_node_on (pm_handle_t h, char *node); pm_err_t pm_node_off (pm_handle_t h, char *node); pm_err_t pm_node_cycle (pm_handle_t h, char *node); pm_err_t pm_node_status (pm_handle_t h, char *node, pm_node_state_t sp); pm_err_t pm_node_iterator_create (pm_handle_t h, pm_node_iterator_t *ip); void pm_node_iterator_destroy…

  • |

    libpnm (3) Linux Manual Page

    libpnm – libnetpbm functions to read and write PNM image files Synopsis#include <netpbm/pnm.h> void pnm_init( int *argcP, char *argv[] ); xel ** pnm_allocarray( int cols, int rows); xel * pnm_allocrow( int cols); void pnm_freearray( xel **xels, int rows); void pnm_freerow( xel *xelrow); void pnm_readpnminit( FILE *fp, int *colsP, int *rowsP, xelval *maxvalP, int *formatP );…

  • |

    libpngpf (3) Linux Manual Page

    libpng – Portable Network Graphics (PNG) Reference Library 1.5.13 (private functions) Synopsis#include "pngpriv.h" As of libpng version 1.5.1, this section is no longer maintained, now that the private function prototypes are hidden in pngpriv.h and not accessible to applications. Look in pngpriv.h for the prototypes and a short description of each function. DescriptionThe functions previously…

  • |

    libpng (3) Linux Manual Page

    libpng – Portable Network Graphics (PNG) Reference Library 1.5.13 Synopsis #include <png.h> png_uint_32 png_access_version_number (void); void png_benign_error (png_structp png_ptr, png_const_charp error); void png_build_grayscale_palette (int bit_depth, png_colorp palette); png_voidp png_calloc (png_structp png_ptr, png_alloc_size_t size); void png_chunk_benign_error (png_structp png_ptr, png_const_charp error); void png_chunk_error (png_structp png_ptr, png_const_charp error); void png_chunk_warning (png_structp png_ptr, png_const_charp message); void png_convert_from_struct_tm (png_timep ptime,…

  • |

    libpm (3) Linux Manual Page

    Table Of Contents These library functions are part of Netpbm(1) This page documents functions in the Netpbm subroutine library that are not directly related to image data. For introductory and general information using libnetpbm, see LibnetpbmUser’sGuide(1) The most commonly used libnetpbm functions are those that read and write and process Netpbm images. Those are documented…

  • |

    libpgm (3) Linux Manual Page

    libpgm – libnetpbm functions to read and write PGM image files Synopsis#include <netpbm/pgm.h> void pgm_init( int *argcP, char *argv[] ); gray ** pgm_allocarray( int cols, int rows ); gray * pgm_allocrow( intcols ); void pgm_freearray( gray **grays, introws ); void pgm_freerow( gray *grayrow); void pgm_readpgminit( FILE *fp, int *colsP, int *rowsP, gray *maxvalP, int *formatP…

  • |

    libpbm (3) Linux Manual Page

    libpbm – libnetpbm functions to read and write PBM image files Synopsis#include <netpbm/pbm.h> bit **pbm_allocarray(int cols, int rows); bit *pbm_allocrow(int cols); pbm_freearray(bit **bits, int rows); pbm_freerow(bit *bitrow); void pbm_readpbminit(FILE * fp, int *colsP, int *rowsP, int *formatP); void pbm_readpbmrow(FILE * fp, bit *bitrow, int cols, int format); void pbm_readpbmrow_packed(FILE * fp, unsigned char * const…

  • |

    liborSpread (3) Linux Manual Page

    QuantLib::BMASwap – swap paying Libor against BMA coupons Synopsis#include <ql/instruments/bmaswap.hpp> Inherits QuantLib::Swap. Public Typesenum Type { Receiver = -1, Payer = 1 } Public Member FunctionsBMASwap (Type type, Real nominal, const Schedule &liborSchedule, Rate liborFraction, Rate liborSpread, const boost::shared_ptr< IborIndex > &liborIndex, const DayCounter &liborDayCount, const Schedule &bmaSchedule, const boost::shared_ptr< BMAIndex > &bmaIndex, const DayCounter…

  • |

    liborLegNPV (3) Linux Manual Page

    QuantLib::BMASwap – swap paying Libor against BMA coupons Synopsis#include <ql/instruments/bmaswap.hpp> Inherits QuantLib::Swap. Public Typesenum Type { Receiver = -1, Payer = 1 } Public Member FunctionsBMASwap (Type type, Real nominal, const Schedule &liborSchedule, Rate liborFraction, Rate liborSpread, const boost::shared_ptr< IborIndex > &liborIndex, const DayCounter &liborDayCount, const Schedule &bmaSchedule, const boost::shared_ptr< BMAIndex > &bmaIndex, const DayCounter…

  • |

    liborLegBPS (3) Linux Manual Page

    QuantLib::BMASwap – swap paying Libor against BMA coupons Synopsis#include <ql/instruments/bmaswap.hpp> Inherits QuantLib::Swap. Public Typesenum Type { Receiver = -1, Payer = 1 } Public Member FunctionsBMASwap (Type type, Real nominal, const Schedule &liborSchedule, Rate liborFraction, Rate liborSpread, const boost::shared_ptr< IborIndex > &liborIndex, const DayCounter &liborDayCount, const Schedule &bmaSchedule, const boost::shared_ptr< BMAIndex > &bmaIndex, const DayCounter…

  • |

    liborLeg (3) Linux Manual Page

    QuantLib::BMASwap – swap paying Libor against BMA coupons Synopsis#include <ql/instruments/bmaswap.hpp> Inherits QuantLib::Swap. Public Typesenum Type { Receiver = -1, Payer = 1 } Public Member FunctionsBMASwap (Type type, Real nominal, const Schedule &liborSchedule, Rate liborFraction, Rate liborSpread, const boost::shared_ptr< IborIndex > &liborIndex, const DayCounter &liborDayCount, const Schedule &bmaSchedule, const boost::shared_ptr< BMAIndex > &bmaIndex, const DayCounter…

  • |

    liborFraction (3) Linux Manual Page

    QuantLib::BMASwap – swap paying Libor against BMA coupons Synopsis#include <ql/instruments/bmaswap.hpp> Inherits QuantLib::Swap. Public Typesenum Type { Receiver = -1, Payer = 1 } Public Member FunctionsBMASwap (Type type, Real nominal, const Schedule &liborSchedule, Rate liborFraction, Rate liborSpread, const boost::shared_ptr< IborIndex > &liborIndex, const DayCounter &liborDayCount, const Schedule &bmaSchedule, const boost::shared_ptr< BMAIndex > &bmaIndex, const DayCounter…

  • |

    libopenjpeg (3) Linux Manual Page

    libopenjpeg – a library for reading and writing JPEG2000 image files. Synopsis#include <openjpeg.h> Conversion FormatsPGX: imagetopgx() / pgxtoimage() PXM: imagetopnm() / pnmtoimage() BMP: imagetobmp() / bmptoimage() TIF: imagetotif() / tiftoimage() RAW: imagetoraw() / rawtoimage() TGA: imagetotga() / tgatoimage() PNG: imagetopng() / pngtoimage() YUV: imagetoyuv() / yuvtoimage() (MJ2) Readopj_set_default_decoder_parameters(opj_dparameters_t *params); opj_dinfo_t *opj_create_decompress(OPJ_CODEC_FORMAT format); opj_event_mgr_t *opj_set_event_mgr(opj_common_ptr info,…

  • |

    libopenjp2 (3) Linux Manual Page

    libopenjp2 – a library for reading and writing JPEG2000 image files. Synopsis#include <openjpeg.h> Conversion FormatsPGX: imagetopgx() / pgxtoimage() PXM: imagetopnm() / pnmtoimage() BMP: imagetobmp() / bmptoimage() TIF: imagetotif() / tiftoimage() RAW: imagetoraw() / rawtoimage() TGA: imagetotga() / tgatoimage() PNG: imagetopng() / pngtoimage() YUV: imagetoyuv() / yuvtoimage() (MJ2) Readopj_set_default_decoder_parameters(opj_dparameters_t *params); opj_dinfo_t *opj_create_decompress(OPJ_CODEC_FORMAT format); opj_event_mgr_t *opj_set_event_mgr(opj_common_ptr info,…