From 12505bdea33a155a9f2a11a7af2d5222c085a094 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 22 Aug 2014 00:03:21 +0000 Subject: [PATCH] Implementando plugin exemplo --- src/plugins/sample/main.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/plugins/sample/main.c b/src/plugins/sample/main.c index eb0af88..736a0d2 100644 --- a/src/plugins/sample/main.c +++ b/src/plugins/sample/main.c @@ -32,18 +32,37 @@ /*--[ Implement ]---------------------------------------------------------------------------------------------------------*/ + /** + * @brief Method called when the terminal connects to host. + * + * @param terminal Terminal widget. + * @param host Connected host. + * @param window Application window. + * + */ static void connected(GtkWidget *terminal, const gchar *host, GtkWidget * window) { - g_message("%s",__FUNCTION__); + g_message("%s - %s",__FUNCTION__,host); } + /** + * @brief Method called when the terminal loses connection with the host. + * + * @param terminal Terminal widget. + * @param window Application window. + * + */ static void disconnected(GtkWidget *terminal, GtkWidget * window) { g_message("%s",__FUNCTION__); } + /** + * @brief Plugin has started. + * + */ LIB3270_EXPORT int pw3270_plugin_start(GtkWidget *window) { GtkWidget * terminal = pw3270_get_terminal_widget(window); -- libgit2 0.21.2