comparison src/plugin.h @ 13106:a0a4b44239e8

[gaim-migrate @ 15468] I was reading the gettext man page and it pointed out that it should be typed as const char *, but it's char * to avoid warnings in code predating ANSI C. So, for the heck of it, I changed added a cast in internal.h. As it turns out, there was a lot of code that relied on this. In the interest of type safety, I've fixed all the warnings. I feel this improved a number of function signatures (in terms of typing clarity). Flame me if you object. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 21:34:43 +0000
parents 4e9935a539db
children f0577a01b2cf
comparison
equal deleted inserted replaced
13105:e347b2217b1b 13106:a0a4b44239e8
625 625
626 /*@}*/ 626 /*@}*/
627 627
628 /** 628 /**
629 * Allocates and returns a new GaimPluginAction. 629 * Allocates and returns a new GaimPluginAction.
630 */ 630 *
631 GaimPluginAction *gaim_plugin_action_new(char* label, void (*callback)(GaimPluginAction *)); 631 * @param label The description of the action to show to the user.
632 * @param callback The callback to call when the user selects this action.
633 */
634 GaimPluginAction *gaim_plugin_action_new(const char* label, void (*callback)(GaimPluginAction *));
635
636 /**
637 * Frees a GaimPluginAction
638 *
639 * @param action The GaimPluginAction to free.
640 */
641 void gaim_plugin_action_free(GaimPluginAction *action);
632 642
633 #ifdef __cplusplus 643 #ifdef __cplusplus
634 } 644 }
635 #endif 645 #endif
636 646