IRCBot Plugin API
v5
|
#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) |
These functions let you create/update/delete a YP listing in the ShoutIRC.com Stream List.
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.
yp | An empty YP_HANDLE struct for AddToYP to fill in. |
sc | A pointer to the SOUND_SERVER the plugin is feeding. |
ypinfo | A pointer to a YP_CREATE_INFO structure you have filled out. |
int(* API_yp::TouchYP)(YP_HANDLE *yp, const char *cur_playing) |
Update your YP listing with the current song.
yp | A YP_HANDLE struct previously filled in by a successful call to AddToYP. |
cur_playing | A pointer to the title of the current song the source plugin is playing. |
void(* API_yp::DelFromYP)(YP_HANDLE *yp) |