Mercurial > pidgin
changeset 5571:113090160626
[gaim-migrate @ 5973]
Here you go, faceprint. gaim_connection_notice().
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 30 May 2003 23:03:02 +0000 |
parents | dc90686acedd |
children | dfdea22a7153 |
files | src/connection.c src/connection.h |
diffstat | 2 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/connection.c Fri May 30 22:00:50 2003 +0000 +++ b/src/connection.c Fri May 30 23:03:02 2003 +0000 @@ -301,6 +301,20 @@ } void +gaim_connection_notice(GaimConnection *gc, const char *text) +{ + GaimConnectionUiOps *ops; + + g_return_if_fail(gc != NULL); + g_return_if_fail(text != NULL); + + ops = gaim_get_connection_ui_ops(); + + if (ops != NULL && ops->notice != NULL) + ops->notice(gc, text); +} + +void gaim_connection_error(GaimConnection *gc, const char *text) { GaimConnectionUiOps *ops;
--- a/src/connection.h Fri May 30 22:00:50 2003 +0000 +++ b/src/connection.h Fri May 30 23:03:02 2003 +0000 @@ -46,6 +46,7 @@ void (*connected)(GaimConnection *gc); void (*request_pass)(GaimConnection *gc); void (*disconnected)(GaimConnection *gc, const char *reason); + void (*notice)(GaimConnection *gc, const char *text); } GaimConnectionUiOps; @@ -178,6 +179,14 @@ size_t step, size_t count); /** + * Displays a connection-specific notice. + * + * @param gc The connection. + * @param text The notice text. + */ +void gaim_connection_notice(GaimConnection *gc, const char *text); + +/** * Closes a connection with an error. * * @param gc The connection.