IRCBot Plugin API  v5
Public Attributes | List of all members
API_yp Struct Reference

#include <plugins.h>

Public Attributes

bool(* AddToYP )(YP_HANDLE *yp, SOUND_SERVER *sc, YP_CREATE_INFO *ypinfo)
 
int(* TouchYP )(YP_HANDLE *yp, const char *cur_playing)
 
void(* DelFromYP )(YP_HANDLE *yp)
 

Detailed Description

These functions let you create/update/delete a YP listing in the ShoutIRC.com Stream List.

See also
YP_CREATE_INFO

Member Data Documentation

bool(* API_yp::AddToYP)(YP_HANDLE *yp, SOUND_SERVER *sc, YP_CREATE_INFO *ypinfo)

Called by your source plugin when it starts playing with listing information.

Parameters
ypAn empty YP_HANDLE struct for AddToYP to fill in.
scA pointer to the SOUND_SERVER the plugin is feeding.
ypinfoA pointer to a YP_CREATE_INFO structure you have filled out.
Returns
false if the listing failed, true for success.
See also
SOUND_SERVER
YP_CREATE_INFO
YP_HANDLE
int(* API_yp::TouchYP)(YP_HANDLE *yp, const char *cur_playing)

Update your YP listing with the current song.

Parameters
ypA YP_HANDLE struct previously filled in by a successful call to AddToYP.
cur_playingA pointer to the title of the current song the source plugin is playing.
Returns
0 on success, -1 on general error (but should be tried again in the future), -2 for a hard error where you should call AddToYP again and start over
See also
YP_HANDLE
void(* API_yp::DelFromYP)(YP_HANDLE *yp)

Delete/deactivate your YP listing.

Parameters
ypA YP_HANDLE struct previously filled in by a successful call to AddToYP.
See also
YP_HANDLE

The documentation for this struct was generated from the following file: