Linux Manuals session 3

Section 3: library functions

  • |

    XAddHosts (3) Linux Manual Page

    XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress, XServerInterpretedAddress – control host access and host control structure Syntaxint XAddHost(Display *display, XHostAddress *host); int XAddHosts(Display *display, XHostAddress *hosts, int num_hosts); XHostAddress *XListHosts(Display *display, int *nhosts_return, Bool state_return); int XRemoveHost(Display *display, XHostAddress *host); int XRemoveHosts(Display *display, XHostAddress *hosts, int num_hosts); int XSetAccessControl(Display *display, int mode); int…

  • |

    XAddHost (3) Linux Manual Page

    XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress, XServerInterpretedAddress – control host access and host control structure Syntaxint XAddHost(Display *display, XHostAddress *host); int XAddHosts(Display *display, XHostAddress *hosts, int num_hosts); XHostAddress *XListHosts(Display *display, int *nhosts_return, Bool state_return); int XRemoveHost(Display *display, XHostAddress *host); int XRemoveHosts(Display *display, XHostAddress *hosts, int num_hosts); int XSetAccessControl(Display *display, int mode); int…

  • |

    XAddConnectionWatch (3) Linux Manual Page

    XAddConnectionWatch, XRemoveConnectionWatch, XProcessInternalConnection, XInternalConnectionNumbers – handle Xlib internal connections Syntaxtypedef void (*XConnectionWatchProc)(Display *display, XPointer client_data, int fd, Bool opening, XPointer *watch_data); Status XAddConnectionWatch(Display *display, XWatchProc procedure, XPointer client_data); Status XRemoveConnectionWatch(Display *display, XWatchProc procedure, XPointer client_data); void XProcessInternalConnection(Display *display, int fd); Status XInternalConnectionNumbers(Display *display, int **fd_return, int *count_return);Argumentsclient_data Specifies the additional client data. count_return Returns the…

  • |

    XActivateScreenSaver (3) Linux Manual Page

    XSetScreenSaver, XForceScreenSaver, XActivateScreenSaver, XResetScreenSaver, XGetScreenSaver – manipulate the screen saver Syntaxint XSetScreenSaver(Display *display, int timeout, int interval, int prefer_blanking, int allow_exposures); int XForceScreenSaver(Display *display, int mode); int XActivateScreenSaver(Display *display); int XResetScreenSaver(Display *display); int XGetScreenSaver(Display *display, int *timeout_return, int *interval_return, int *prefer_blanking_return, int *allow_exposures_return);Argumentsallow_exposures Specifies the screen save control values. You can pass DontAllowExposures, AllowExposures, or…

  • |

    WildMidi_Shutdown (3) Linux Manual Page

    WildMidi_Shutdown – Shutdown the library LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> void WildMidi_Shutdown(void) DescriptionShuts down the wildmidi library, resetting data and freeing up memory used by the library. Once this is called, the library is no longer initialized and WildMidi_Init(3) will need to be called again. See AlsoWildMidi_GetString(3), WildMidi_Init(3), WildMidi_MasterVolume(3), WildMidi_Open(3), WildMidi_OpenBuffer(3), WildMidi_SetOption(3), WildMidi_GetOutput(3), WildMidi_GetInfo(3), WildMidi_FastSeek(3), WildMidi_Close(3), wildmidi.cfg(5)…

  • |

    WildMidi_SetOption (3) Linux Manual Page

    WildMidi_SetOption – Set a library option for a specific midi LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> int WildMidi_SetOption (midi *handle, unsigned short int options, unsigned short int setting) DescriptionSet a library option for a specific midi. handle The identifier obtained from opening a midi file with WildMidi_Open(3) or WildMidi_OpenBuffer(3) options The option or options you wish to change….

  • |

    WildMidi_OpenBuffer (3) Linux Manual Page

    WildMidi_OpenBuffer – Open a midi file buffer for processing LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> midi *WildMidi_OpenBuffer (unsigned char *midibuffer, unsigned long int size) DescriptionOpen a midi file, that you have buffered in memory, for processing. midibuffer The memory location of the buffered midi file. This buffer needs to be in standard midi file format. Once this function…

  • |

    WildMidi_Open (3) Linux Manual Page

    WildMidi_Open – Open a midi file for processing LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> midi *WildMidi_Open (const char *midifile) DescriptionOpen a MIDI file pointed to by midifile for processing. This file must be in standard midi format. Return ValueReturns NULL on error and sends a message to stderr, otherwise returns a handle for the midi file opened. This…

  • |

    WildMidi_MasterVolume (3) Linux Manual Page

    WildMidi_MasterVolume – sets the overall audio level of the library. LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> int WildMidi_MasterVolume (unsigned char master_volume) DescriptionSets the overall library volume level to master_volume. The range of master_volume is between 0 and 127 with 100 being the default. Return ValueReturns -1 on error, otherwise returns 0. See AlsoWildMidi_GetString(3), WildMidi_Init(3), WildMidi_Open(3), WildMidi_OpenBuffer(3), WildMidi_SetOption(3), WildMidi_GetOutput(3),…

  • |

    WildMidi_Init (3) Linux Manual Page

    WildMidi_Init – Initialize the library LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> WildMidi_Init (const char *config_file, unsigned short int rate, unsigned short int options) DescriptionInitializes libWildMidi in preparation for playback. This function only needs to be called once by the program using libWildMidi. config-file The file that contains the instrument configuration for the library.rate The sound rate you want…

  • |

    WildMidi_GetString (3) Linux Manual Page

    WildMidi_GetString – Get string from library LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> const char *WildMidi_GetString (unsigned short int info); DescriptionReturns a pointer to a string depending on what info is set to. At this stage WM_GS_VERSION is the only setting for info which returns a pointer to a string containing libWildMidi version information. Return ValueReturns a const char…

  • |

    WildMidi_GetOutput (3) Linux Manual Page

    WildMidi_GetOutput – retrieve raw audio data LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> int WildMidi_GetOutput (midi *handle, char *buffer, unsigned long int size); DescriptionPlaces size bytes of audio data from a handle, previously opened by WildMidi_Open(3) or WildMidi_OpenBuffer(3), into a buffer pointer to by buffer. buffer must be at least size bytes, with size being a multiple of 4…

  • |

    WildMidi_GetInfo (3) Linux Manual Page

    WildMidi_GetInfo – get information on a midi LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> struct _WM_Info *WildMidi_GetInfo (midi *handle); DescriptionObtains information allowing you to determine song position, current options, and any copyright information. handle The identifier obtained from opening a midi file with WildMidi_Open(3) or WildMidi_OpenBuffer(3)Return ValueOn error returns NULL with an error message displayed to stderr. Otherwise returns…

  • |

    WildMidi_FastSeek (3) Linux Manual Page

    WildMidi_FastSeek – Move to a position in a midi file LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> int WildMidi_FastSeek (midi *handle, unsigned long int *sample_pos); DescriptionResets all note specific midi states and active notes before scanning to sample_pos samples from the beginning taking note of any changes to midi channel states. The next call to WildMidi_GetOutput(3) will behave as…

  • |

    WildMidi_Close (3) Linux Manual Page

    WildMidi_Close – Close an open midi handle LibrarylibWildMidi Synopsis#include <wildmidi_lib.h> int WildMidi_Close (midi *handle) DescriptionFinish processing MIDI data or file. handle The identifier obtained from opening a midi file with WildMidi_Open(3) or WildMidi_OpenBuffer(3)Return Valuereturns -1 on error, otherwise returns 0 See AlsoWildMidi_GetString(3), WildMidi_Init(3), WildMidi_MasterVolume(3), WildMidi_Open(3), WildMidi_OpenBuffer(3), WildMidi_SetOption(3), WildMidi_GetOutput(3), WildMidi_GetInfo(3), WildMidi_FastSeek(3), WildMidi_Shutdown(3), wildmidi.cfg(5) AuthorChris Ison <wildcode…

  • |

    WidthOfScreen (3) Linux Manual Page

    BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOfScreen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, MaxCmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen – screen information functions and macros Syntaxunsigned long BlackPixelOfScreen(Screen *screen); unsigned long WhitePixelOfScreen(Screen *screen); int CellsOfScreen(Screen *screen); Colormap DefaultColormapOfScreen(Screen *screen); int DefaultDepthOfScreen(Screen *screen); GC DefaultGCOfScreen(Screen *screen); Visual *DefaultVisualOfScreen(Screen *screen); int DoesBackingStore(Screen *screen); Bool DoesSaveUnders(Screen *screen);…

  • |

    WidthMMOfScreen (3) Linux Manual Page

    BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOfScreen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, MaxCmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen – screen information functions and macros Syntaxunsigned long BlackPixelOfScreen(Screen *screen); unsigned long WhitePixelOfScreen(Screen *screen); int CellsOfScreen(Screen *screen); Colormap DefaultColormapOfScreen(Screen *screen); int DefaultDepthOfScreen(Screen *screen); GC DefaultGCOfScreen(Screen *screen); Visual *DefaultVisualOfScreen(Screen *screen); int DoesBackingStore(Screen *screen); Bool DoesSaveUnders(Screen *screen);…

  • |

    WhitePixelOfScreen (3) Linux Manual Page

    BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOfScreen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, MaxCmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen – screen information functions and macros Syntaxunsigned long BlackPixelOfScreen(Screen *screen); unsigned long WhitePixelOfScreen(Screen *screen); int CellsOfScreen(Screen *screen); Colormap DefaultColormapOfScreen(Screen *screen); int DefaultDepthOfScreen(Screen *screen); GC DefaultGCOfScreen(Screen *screen); Visual *DefaultVisualOfScreen(Screen *screen); int DoesBackingStore(Screen *screen); Bool DoesSaveUnders(Screen *screen);…

  • |

    WhitePixel (3) Linux Manual Page

    AllPlanes, BlackPixel, WhitePixel, ConnectionNumber, DefaultColormap, DefaultDepth, XListDepths, DefaultGC, DefaultRootWindow, DefaultScreenOfDisplay, DefaultScreen, DefaultVisual, DisplayCells, DisplayPlanes, DisplayString, XMaxRequestSize, XExtendedMaxRequestSize, LastKnownRequestProcessed, NextRequest, ProtocolVersion, ProtocolRevision, QLength, RootWindow, ScreenCount, ScreenOfDisplay, ServerVendor, VendorRelease – Display macros and functions Syntaxunsigned long AllPlanes; unsigned long BlackPixel(Display *display, int screen_number); unsigned long WhitePixel(Display *display, int screen_number); int ConnectionNumber(Display *display); Colormap DefaultColormap(Display *display, int screen_number);…

  • |

    Weekly (3) Linux Manual Page

    Date and time calculations – Classesclass DateInterval Date interval described by a number of a given time unit. class PricingPeriod Time pricingperiod described by a number of a given time unit. class Calendar calendar class class Date Concrete date class. struct DateGeneration Date-generation rule. class DayCounter day counter class class Period ModulesCalendars Day counters Typedefstypedef…