Ticket #29296: patch-use_extern.diff

File patch-use_extern.diff, 6.7 KB (added by ak.ml@…, 13 years ago)
  • libgtkpod/gtkpod_app_iface.c

    old new  
    695695    GtkPodAppInterface *gp_iface = GTKPOD_APP_GET_INTERFACE (gtkpod_app);
    696696    return g_hash_table_get_keys(gp_iface->filetypes);
    697697}
     698
     699GtkPodApp *gtkpod_app;
     700guint gtkpod_app_signals[LAST_SIGNAL];
  • libgtkpod/gtkpod_app_iface.h

    old new  
    8080} CONF_STATE;
    8181
    8282/* predefined IDs for use with gtkpod_confirmation() */
    83 enum {
     83typedef enum {
    8484    CONF_ID_IPOD_DIR = 0,
    8585    CONF_ID_GTKPOD_WARNING,
    8686    CONF_ID_DANGLING0,
     
    245245FileType* gtkpod_get_filetype(gchar *name);
    246246GList *gtkpod_get_filetypes();
    247247
    248 GtkPodApp *gtkpod_app;
    249 guint gtkpod_app_signals[LAST_SIGNAL];
     248extern GtkPodApp *gtkpod_app;
     249extern guint gtkpod_app_signals[LAST_SIGNAL];
    250250
    251251#endif /* GTKPOD_APP_IFACE_H_ */
  • plugins/core_preferences/plugin.c

    old new  
    4141#define PREFERENCE_ICON "core_prefs-gtkpod-category"
    4242#define PREFERENCE_ICON_STOCK_ID "core_prefs-preference-icon"
    4343
     44CorePrefsPlugin *core_prefs_plugin;
     45
    4446/* Parent class. Part of standard class definition */
    4547static gpointer parent_class;
    4648
  • plugins/core_preferences/plugin.h

    old new  
    6161    AnjutaPluginClass parent_class;
    6262};
    6363
    64 CorePrefsPlugin *core_prefs_plugin;
     64extern CorePrefsPlugin *core_prefs_plugin;
    6565
    6666#endif /* PLUGIN_H_ */
  • plugins/details_editor/plugin.c

    old new  
    3737#include "details.h"
    3838#include "details_editor_actions.h"
    3939
     40DetailsEditorPlugin *details_editor_plugin;
     41
    4042/* Parent class. Part of standard class definition */
    4143static gpointer parent_class;
    4244
  • plugins/details_editor/plugin.h

    old new  
    5252    AnjutaPluginClass parent_class;
    5353};
    5454
    55 DetailsEditorPlugin *details_editor_plugin;
     55extern DetailsEditorPlugin *details_editor_plugin;
    5656
    5757#endif /* PLUGIN_H_ */
  • plugins/info_display/plugin.c

    old new  
    3737#include "info.h"
    3838#include "infoview.h"
    3939
     40InfoDisplayPlugin *info_display_plugin;
     41
    4042/* Parent class. Part of standard class definition */
    4143static gpointer parent_class;
    4244
  • plugins/info_display/plugin.h

    old new  
    5050    AnjutaPluginClass parent_class;
    5151};
    5252
    53 InfoDisplayPlugin *info_display_plugin;
     53extern InfoDisplayPlugin *info_display_plugin;
    5454
    5555#endif /* PLUGIN_H_ */
  • plugins/photo_editor/plugin.c

    old new  
    3838#include "photo_editor_actions.h"
    3939#include "plugin.h"
    4040
     41PhotoEditorPlugin *photo_editor_plugin;
     42
    4143/* Parent class. Part of standard class definition */
    4244static gpointer parent_class;
    4345
  • plugins/photo_editor/plugin.h

    old new  
    5959    AnjutaPluginClass parent_class;
    6060};
    6161
    62 PhotoEditorPlugin *photo_editor_plugin;
     62extern PhotoEditorPlugin *photo_editor_plugin;
    6363
    6464#endif /* PLUGIN_H_ */
  • plugins/repository_editor/plugin.c

    old new  
    3737#include "repository.h"
    3838#include "repository_actions.h"
    3939
     40RepositoryEditorPlugin *repository_editor_plugin;
     41
    4042/* Parent class. Part of standard class definition */
    4143static gpointer parent_class;
    4244
  • plugins/repository_editor/plugin.h

    old new  
    5151    AnjutaPluginClass parent_class;
    5252};
    5353
    54 RepositoryEditorPlugin *repository_editor_plugin;
     54extern RepositoryEditorPlugin *repository_editor_plugin;
    5555
    5656#endif /* PLUGIN_H_ */
  • plugins/sorttab_display/display_sorttabs.c

    old new  
    8383
    8484GtkBuilder *cal_xml;
    8585
     86GtkPaned *sorttab_parent;
     87
    8688/* ---------------------------------------------------------------- */
    8789/*                                                                  */
    8890/* Section for filter tab display (callback)                        */
  • plugins/sorttab_display/display_sorttabs.h

    old new  
    119119#define SP_SHIFT 9
    120120#define SP_MASK ((1<<SP_SHIFT)-1)
    121121
    122 GtkPaned *sorttab_parent;
     122extern GtkPaned *sorttab_parent;
    123123
    124124void st_create_tabs(GtkPaned *parent, gchar *glade_path);
    125125void st_init(ST_CAT_item new_category, guint32 inst);