Re-namespacing Pidgin's API for Introspection

Ankit Vani a at nevitus.org
Sat Feb 8 15:47:29 EST 2014


On Sun, Feb 9, 2014 at 12:04 AM, Mark Doliner <mark at kingant.net> wrote:

> I think we should probably rename everything to be in our namespace.
>  Do you have a list handy? I'm wondering what stuff in libpurple needs
> to be renamed.
>


This is a list of everything that g-ir-scanner reports of being in a bad
namespace for its module, along with the proposed change of symbol name.


NAMESPACE CHANGES IN LIBPURPLE
==============================

dbus-bindings.h:
  'empty_to_null'           to 'purple_emptystr_to_null'
  'null_to_empty'           to 'purple_null_to_emptystr'

dbus-purple.h:
  'DBUS_SERVICE_PURPLE'     to 'PURPLE_DBUS_SERVICE'
  'DBUS_PATH_PURPLE'        to 'PURPLE_DBUS_PATH'
  'DBUS_INTERFACE_PURPLE'   to 'PURPLE_DBUS_INTERFACE'

server.h:
  'serv_got_typing'         to 'purple_serv_got_typing'
  'serv_got_typing_stopped' to 'purple_serv_got_typing_stopped'
  'serv_got_im'             to 'purple_serv_got_im'
  'serv_join_chat'          to 'purple_serv_join_chat'
  'serv_reject_chat'        to 'purple_serv_reject_chat'
  'serv_got_chat_invite'    to 'purple_serv_got_chat_invite'
  'serv_got_joined_chat'    to 'purple_serv_got_joined_chat'
  'serv_got_chat_left'      to 'purple_serv_got_chat_left'
  'serv_got_chat_in'        to 'purple_serv_got_chat_in'
  'serv_send_file'          to 'purple_serv_send_file'
  'serv_send_typing'        to 'purple_serv_send_typing'
  'serv_move_buddy'         to 'purple_serv_move_buddy'
  'serv_send_im'            to 'purple_serv_send_im'
  'serv_get_info'           to 'purple_serv_get_info'
  'serv_set_info'           to 'purple_serv_set_info'
  'serv_add_permit'         to 'purple_serv_add_permit'
  'serv_add_deny'           to 'purple_serv_add_deny'
  'serv_rem_permit'         to 'purple_serv_rem_permit'
  'serv_rem_deny'           to 'purple_serv_rem_deny'
  'serv_set_permit_deny'    to 'purple_serv_set_permit_deny'
  'serv_chat_invite'        to 'purple_serv_chat_invite'
  'serv_chat_leave'         to 'purple_serv_chat_leave'
  'serv_chat_whisper'       to 'purple_serv_chat_whisper'
  'serv_chat_send'          to 'purple_serv_chat_send'
  'serv_alias_buddy'        to 'purple_serv_alias_buddy'
  'serv_got_alias'          to 'purple_serv_got_alias'

stun.h:
  'StunCallback'            to 'PurpleStunCallback'

theme-manager.h:
  'PTFunc'                  to 'PurplePTFunc'

upnp.h:
  'UPnPMappingAddRemove'    to 'PurpleUPnPMappingAddRemove'



NAMESPACE CHANGES IN LIBGNT
===========================

gntentry.h:
  'ENTRY_CHAR'             to 'GNT_ENTRY_CHAR'

gntutils.h:
  'g_hash_table_duplicate' to 'gnt_hash_table_duplicate'
  'GDupFunc'               to 'GntDupFunc'



NAMESPACE CHANGES IN FINCH
==========================

gntmenuutil.h:
  'gnt_append_menu_action' to 'finch_append_menu_action'

gntui.h:
  'gnt_ui_init'            to 'finch_ui_init'
  'gnt_ui_uninit'          to 'finch_ui_uninit'



NAMESPACE CHANGES IN PIDGIN
===========================

gtkblist.h:
  'pidgin_blist_sort_method'                          to
'_PidginBlistSortMethod'

gtkdnd-hints.h:
  'DndHintPosition'                                   to
'PidginDndHintPosition'
  'dnd_hints_hide_all'                                to
'pidgin_dnd_hints_hide_all'
  'dnd_hints_hide'                                    to
'pidgin_dnd_hints_hide'
  'dnd_hints_show_relative'                           to
'pidgin_dnd_hints_show_relative'
  'dnd_hints_show'                                    to
'pidgin_dnd_hints_show'
  'DndHintWindowId'                                   to
'PidginDndHintWindowId'

gtknickcolors.h:
  'NUM_NICK_SEED_COLORS'                              to
'PIDGIN_NUM_NICK_SEED_COLORS'

gtksourceiter.h:
  'gtk_source_iter_backward_search'                   to
'pidgin_source_iter_backward_search'
  'gtk_source_iter_find_matching_bracket'             to
'pidgin_source_iter_find_matching_bracket'
  'gtk_source_iter_forward_search'                    to
'pidgin_source_iter_forward_search'
  'GtkSourceSearchFlags'                              to
'PidginSourceSearchFlags'

gtksourceundomanager.h:
  'gtk_source_undo_manager_begin_not_undoable_action' to
'pidgin_source_undo_manager_begin_not_undoable_action'
  'gtk_source_undo_manager_can_redo'                  to
'pidgin_source_undo_manager_can_redo'
  'gtk_source_undo_manager_can_undo'                  to
'pidgin_source_undo_manager_can_undo'
  'GtkSourceUndoManagerClass'                         to
'PidginSourceUndoManagerClass'
  'gtk_source_undo_manager_end_not_undoable_action'   to
'pidgin_source_undo_manager_end_not_undoable_action'
  'gtk_source_undo_manager_get_max_undo_levels'       to
'pidgin_source_undo_manager_get_max_undo_levels'
  'gtk_source_undo_manager_get_type'                  to
'pidgin_source_undo_manager_get_type'
  'gtk_source_undo_manager_new'                       to
'pidgin_source_undo_manager_new'
  'GtkSourceUndoManagerPrivate'                       to
'PidginSourceUndoManagerPrivate'
  'gtk_source_undo_manager_redo'                      to
'pidgin_source_undo_manager_redo'
  'gtk_source_undo_manager_set_max_undo_levels'       to
'pidgin_source_undo_manager_set_max_undo_levels'
  'GtkSourceUndoManager'                              to
'PidginSourceUndoManager'
  'gtk_source_undo_manager_undo'                      to
'pidgin_source_undo_manager_undo'

gtksourceview-marshal.h:
  'gtksourceview_marshal_VOID__BOXED_BOXED'           to
'pidgin_sourceview_marshal_VOID__BOXED_BOXED'

gtkthemes.h:
  'smiley_list'                                       to 'PidginSmileyList'
  'smiley_theme'                                      to 'PidginSmileyTheme'

gtkwebview.h:
  'GtkWebViewAction'                                  to
'PidginWebViewAction'
  'gtk_webview_activate_anchor'                       to
'pidgin_webview_activate_anchor'
  'gtk_webview_activate_toolbar'                      to
'pidgin_webview_activate_toolbar'
  'gtk_webview_append_html'                           to
'pidgin_webview_append_html'
  'gtk_webview_associate_smiley'                      to
'pidgin_webview_associate_smiley'
  'GtkWebViewButtons'                                 to
'PidginWebViewButtons'
  'gtk_webview_class_register_protocol'               to
'pidgin_webview_class_register_protocol'
  'GtkWebViewClass'                                   to
'PidginWebViewClass'
  'gtk_webview_clear_formatting'                      to
'pidgin_webview_clear_formatting'
  'gtk_webview_font_grow'                             to
'pidgin_webview_font_grow'
  'gtk_webview_font_set_size'                         to
'pidgin_webview_font_set_size'
  'gtk_webview_font_shrink'                           to
'pidgin_webview_font_shrink'
  'gtk_webview_get_autoscroll'                        to
'pidgin_webview_get_autoscroll'
  'gtk_webview_get_body_html'                         to
'pidgin_webview_get_body_html'
  'gtk_webview_get_body_text'                         to
'pidgin_webview_get_body_text'
  'gtk_webview_get_caret'                             to
'pidgin_webview_get_caret'
  'gtk_webview_get_current_backcolor'                 to
'pidgin_webview_get_current_backcolor'
  'gtk_webview_get_current_fontface'                  to
'pidgin_webview_get_current_fontface'
  'gtk_webview_get_current_fontsize'                  to
'pidgin_webview_get_current_fontsize'
  'gtk_webview_get_current_forecolor'                 to
'pidgin_webview_get_current_forecolor'
  'gtk_webview_get_current_format'                    to
'pidgin_webview_get_current_format'
  'gtk_webview_get_format_functions'                  to
'pidgin_webview_get_format_functions'
  'gtk_webview_get_head_html'                         to
'pidgin_webview_get_head_html'
  'gtk_webview_get_protocol_name'                     to
'pidgin_webview_get_protocol_name'
  'gtk_webview_get_selected_text'                     to
'pidgin_webview_get_selected_text'
  'gtk_webview_get_type'                              to
'pidgin_webview_get_type'
  'gtk_webview_hide_toolbar'                          to
'pidgin_webview_hide_toolbar'
  'gtk_webview_insert_hr'                             to
'pidgin_webview_insert_hr'
  'gtk_webview_insert_image'                          to
'pidgin_webview_insert_image'
  'gtk_webview_insert_link'                           to
'pidgin_webview_insert_link'
  'gtk_webview_insert_smiley'                         to
'pidgin_webview_insert_smiley'
  'gtk_webview_load_html_string'                      to
'pidgin_webview_load_html_string'
  'gtk_webview_load_html_string_with_selection'       to
'pidgin_webview_load_html_string_with_selection'
  'gtk_webview_new'                                   to
'pidgin_webview_new'
  'gtk_webview_page_down'                             to
'pidgin_webview_page_down'
  'gtk_webview_page_up'                               to
'pidgin_webview_page_up'
  'gtk_webview_quote_js_string'                       to
'pidgin_webview_quote_js_string'
  'gtk_webview_remove_smileys'                        to
'pidgin_webview_remove_smileys'
  'gtk_webview_safe_execute_script'                   to
'pidgin_webview_safe_execute_script'
  'gtk_webview_scroll_to_end'                         to
'pidgin_webview_scroll_to_end'
  'gtk_webview_set_autoscroll'                        to
'pidgin_webview_set_autoscroll'
  'gtk_webview_set_caret'                             to
'pidgin_webview_set_caret'
  'gtk_webview_set_format_functions'                  to
'pidgin_webview_set_format_functions'
  'gtk_webview_set_protocol_name'                     to
'pidgin_webview_set_protocol_name'
  'gtk_webview_set_toolbar'                           to
'pidgin_webview_set_toolbar'
  'gtk_webview_setup_entry'                           to
'pidgin_webview_setup_entry'
  'gtk_webview_set_vadjustment'                       to
'pidgin_webview_set_vadjustment'
  'gtk_webview_set_whole_buffer_formatting_only'      to
'pidgin_webview_set_whole_buffer_formatting_only'
  'gtk_webview_show_toolbar'                          to
'pidgin_webview_show_toolbar'
  'gtk_webview_smiley_create'                         to
'pidgin_webview_smiley_create'
  'gtk_webview_smiley_destroy'                        to
'pidgin_webview_smiley_destroy'
  'gtk_webview_smiley_find'                           to
'pidgin_webview_smiley_find'
  'GtkWebViewSmileyFlags'                             to
'PidginWebViewSmileyFlags'
  'gtk_webview_smiley_get_file'                       to
'pidgin_webview_smiley_get_file'
  'gtk_webview_smiley_get_flags'                      to
'pidgin_webview_smiley_get_flags'
  'gtk_webview_smiley_get_hidden'                     to
'pidgin_webview_smiley_get_hidden'
  'gtk_webview_smiley_get_smile'                      to
'pidgin_webview_smiley_get_smile'
  'gtk_webview_smiley_reload'                         to
'pidgin_webview_smiley_reload'
  'GtkWebViewSmiley'                                  to
'PidginWebViewSmiley'
  'gtk_webview_toggle_backcolor'                      to
'pidgin_webview_toggle_backcolor'
  'gtk_webview_toggle_bold'                           to
'pidgin_webview_toggle_bold'
  'gtk_webview_toggle_fontface'                       to
'pidgin_webview_toggle_fontface'
  'gtk_webview_toggle_forecolor'                      to
'pidgin_webview_toggle_forecolor'
  'gtk_webview_toggle_italic'                         to
'pidgin_webview_toggle_italic'
  'gtk_webview_toggle_strike'                         to
'pidgin_webview_toggle_strike'
  'gtk_webview_toggle_underline'                      to
'pidgin_webview_toggle_underline'
  'GtkWebView'                                        to 'PidginWebView'

gtkwebviewtoolbar.h:
  'DEFAULT_FONT_FACE'                                 to
'PIDGIN_DEFAULT_FONT_FACE'
  'gtk_webviewtoolbar_activate'                       to
'pidgin_webviewtoolbar_activate'
  'gtk_webviewtoolbar_associate_smileys'              to
'pidgin_webviewtoolbar_associate_smileys'
  'gtk_webviewtoolbar_attach'                         to
'pidgin_webviewtoolbar_attach'
  'GtkWebViewToolbarClass'                            to
'PidginWebViewToolbarClass'
  'gtk_webviewtoolbar_get_type'                       to
'pidgin_webviewtoolbar_get_type'
  'gtk_webviewtoolbar_new'                            to
'pidgin_webviewtoolbar_new'
  'gtk_webviewtoolbar_switch_active_conversation'     to
'pidgin_webviewtoolbar_switch_active_conversation'
  'GtkWebViewToolbar'                                 to
'PidginWebViewToolbar'

gtkwhiteboard.h:
  'BRUSH_STATE_DOWN'                                  to
'PIDGIN_BRUSH_STATE_DOWN'
  'BRUSH_STATE_MOTION'                                to
'PIDGIN_BRUSH_STATE_MOTION'
  'BRUSH_STATE_UP'                                    to
'PIDGIN_BRUSH_STATE_UP'
  'FULL_CIRCLE_DEGREES'                               to
'PIDGIN_FULL_CIRCLE_DEGREES'
  'PALETTE_NUM_COLORS'                                to
'PIDGIN_PALETTE_NUM_COLORS'

smileyparser.h:
  'smiley_parse_markup'                               to
'pidgin_smiley_parse_markup'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20140209/ddcd5398/attachment-0001.html>


More information about the Devel mailing list