Mercurial > pidgin
comparison src/debug.c @ 7035:feb3d21a7794
[gaim-migrate @ 7598]
Standardized the UI op accessor functions in every file. They're now
properly namespaced.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Mon, 29 Sep 2003 23:39:02 +0000 |
| parents | acc4376ce062 |
| children | f25119847c5b |
comparison
equal
deleted
inserted
replaced
| 7034:f7ff0dfa6b9f | 7035:feb3d21a7794 |
|---|---|
| 33 GaimDebugUiOps *ops; | 33 GaimDebugUiOps *ops; |
| 34 | 34 |
| 35 g_return_if_fail(level != GAIM_DEBUG_ALL); | 35 g_return_if_fail(level != GAIM_DEBUG_ALL); |
| 36 g_return_if_fail(format != NULL); | 36 g_return_if_fail(format != NULL); |
| 37 | 37 |
| 38 ops = gaim_get_debug_ui_ops(); | 38 ops = gaim_debug_get_ui_ops(); |
| 39 | 39 |
| 40 if (ops != NULL && ops->print != NULL) | 40 if (ops != NULL && ops->print != NULL) |
| 41 ops->print(level, category, format, args); | 41 ops->print(level, category, format, args); |
| 42 } | 42 } |
| 43 | 43 |
| 114 gaim_debug_vargs(GAIM_DEBUG_FATAL, category, format, args); | 114 gaim_debug_vargs(GAIM_DEBUG_FATAL, category, format, args); |
| 115 va_end(args); | 115 va_end(args); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void | 118 void |
| 119 gaim_set_debug_ui_ops(GaimDebugUiOps *ops) | 119 gaim_debug_set_ui_ops(GaimDebugUiOps *ops) |
| 120 { | 120 { |
| 121 debug_ui_ops = ops; | 121 debug_ui_ops = ops; |
| 122 } | 122 } |
| 123 | 123 |
| 124 GaimDebugUiOps * | 124 GaimDebugUiOps * |
| 125 gaim_get_debug_ui_ops(void) | 125 gaim_debug_get_ui_ops(void) |
| 126 { | 126 { |
| 127 return debug_ui_ops; | 127 return debug_ui_ops; |
| 128 } | 128 } |
