1
/******************************************************************************
3
This file is a part of the cairo-dock program,
4
released under the terms of the GNU General Public License.
6
Written by Fabrice Rey (for any bug report, please mail me to fabounet@users.berlios.de)
8
******************************************************************************/
11
#include <cairo-dock.h>
13
#include "applet-struct.h"
14
#include "applet-config.h"
16
CD_APPLET_INCLUDE_MY_VARS
18
//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.
19
CD_APPLET_GET_CONFIG_BEGIN
22
CD_APPLET_GET_CONFIG_END
25
//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before yo get the applet's config, and when your applet is stopped.
26
CD_APPLET_RESET_CONFIG_BEGIN
29
CD_APPLET_RESET_CONFIG_END
32
//\_________________ Here you have to free all ressources allocated for myData. This one will be reseted to 0 at the end of this function. This function is called when your applet is stopped.
33
CD_APPLET_RESET_DATA_BEGIN
36
CD_APPLET_RESET_DATA_END