() -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have.

This commit is contained in:
Mikael Magnusson 2008-02-15 16:47:10 +01:00
parent 0ffd1ccc47
commit 9e05faf3d6
28 changed files with 97 additions and 97 deletions

View file

@ -57,7 +57,7 @@ extern gint obt_display_extension_sync_basep;
extern Display* obt_display;
gboolean obt_display_open(const char *display_name);
void obt_display_close();
void obt_display_close(void);
void obt_display_ignore_errors(gboolean ignore);

View file

@ -20,8 +20,8 @@
#ifndef __obt_internal_h
#define __obt_internal_h
void obt_prop_startup();
void obt_prop_startup(void);
void obt_keyboard_shutdown();
void obt_keyboard_shutdown(void);
#endif /* __obt_internal_h */

View file

@ -40,7 +40,7 @@ typedef enum {
OBT_KEYBOARD_NUM_MODKEYS
} ObtModkeysKey;
void obt_keyboard_reload();
void obt_keyboard_reload(void);
/*! Get the modifier mask(s) for a KeyCode. (eg. a keycode bound to Alt_L could
return a mask of (Mod1Mask | Mask3Mask)) */

View file

@ -27,7 +27,7 @@ G_BEGIN_DECLS
typedef struct _ObtMainLoop ObtMainLoop;
ObtMainLoop *obt_main_loop_new();
ObtMainLoop *obt_main_loop_new(void);
void obt_main_loop_ref(ObtMainLoop *loop);
void obt_main_loop_unref(ObtMainLoop *loop);

View file

@ -28,7 +28,7 @@ typedef struct _ObtParseInst ObtParseInst;
typedef void (*ObtParseCallback)(xmlNodePtr node, gpointer data);
ObtParseInst* obt_parse_instance_new();
ObtParseInst* obt_parse_instance_new(void);
void obt_parse_instance_ref(ObtParseInst *inst);
void obt_parse_instance_unref(ObtParseInst *inst);

View file

@ -25,7 +25,7 @@ G_BEGIN_DECLS
typedef struct _ObtPaths ObtPaths;
ObtPaths* obt_paths_new();
ObtPaths* obt_paths_new(void);
void obt_paths_ref(ObtPaths *p);
void obt_paths_unref(ObtPaths *p);

View file

@ -30,7 +30,7 @@ typedef struct _ObtXEventHandler ObtXEventHandler;
typedef void (*ObtXEventCallback) (const XEvent *e, gpointer data);
ObtXEventHandler* xevent_new();
ObtXEventHandler* xevent_new(void);
void xevent_ref(ObtXEventHandler *h);
void xevent_unref(ObtXEventHandler *h);

View file

@ -79,7 +79,7 @@ void actions_act_unref(ObActionsAct *act);
void actions_set_need_pointer_replay_before_move(gboolean replay);
/*! Returns if a ReplayPointer is still needed. If it was called while running
actions then this will be false */
gboolean actions_get_need_pointer_replay_before_move();
gboolean actions_get_need_pointer_replay_before_move(void);
/*! Pass in a GSList of ObActionsAct's to be run. */
void actions_run_acts(GSList *acts,
@ -91,8 +91,8 @@ void actions_run_acts(GSList *acts,
ObFrameContext con,
struct _ObClient *client);
gboolean actions_interactive_act_running();
void actions_interactive_cancel_act();
gboolean actions_interactive_act_running(void);
void actions_interactive_cancel_act(void);
gboolean actions_interactive_input_event(XEvent *e);

View file

@ -1,43 +1,43 @@
#ifndef __actions_all_h
#define __actions_all_h
void action_all_startup();
void action_all_startup(void);
void action_execute_startup();
void action_debug_startup();
void action_showmenu_startup();
void action_showdesktop_startup();
void action_reconfigure_startup();
void action_exit_startup();
void action_restart_startup();
void action_cyclewindows_startup();
void action_breakchroot_startup();
void action_close_startup();
void action_move_startup();
void action_focus_startup();
void action_raise_startup();
void action_lower_startup();
void action_raiselower_startup();
void action_unfocus_startup();
void action_iconify_startup();
void action_fullscreen_startup();
void action_maximize_startup();
void action_moveresizeto_startup();
void action_moverelative_startup();
void action_shade_startup();
void action_kill_startup();
void action_omnipresent_startup();
void action_directionalwindows_startup();
void action_resize_startup();
void action_decorations_startup();
void action_desktop_startup();
void action_resizerelative_startup();
void action_addremovedesktop_startup();
void action_dockautohide_startup();
void action_layer_startup();
void action_movetoedge_startup();
void action_growtoedge_startup();
void action_if_startup();
void action_focustobottom_startup();
void action_execute_startup(void);
void action_debug_startup(void);
void action_showmenu_startup(void);
void action_showdesktop_startup(void);
void action_reconfigure_startup(void);
void action_exit_startup(void);
void action_restart_startup(void);
void action_cyclewindows_startup(void);
void action_breakchroot_startup(void);
void action_close_startup(void);
void action_move_startup(void);
void action_focus_startup(void);
void action_raise_startup(void);
void action_lower_startup(void);
void action_raiselower_startup(void);
void action_unfocus_startup(void);
void action_iconify_startup(void);
void action_fullscreen_startup(void);
void action_maximize_startup(void);
void action_moveresizeto_startup(void);
void action_moverelative_startup(void);
void action_shade_startup(void);
void action_kill_startup(void);
void action_omnipresent_startup(void);
void action_directionalwindows_startup(void);
void action_resize_startup(void);
void action_decorations_startup(void);
void action_desktop_startup(void);
void action_resizerelative_startup(void);
void action_addremovedesktop_startup(void);
void action_dockautohide_startup(void);
void action_layer_startup(void);
void action_movetoedge_startup(void);
void action_growtoedge_startup(void);
void action_if_startup(void);
void action_focustobottom_startup(void);
#endif

View file

@ -327,7 +327,7 @@ void client_remove_destroy_notify(ObClientCallback func);
*/
void client_manage(Window win, struct _ObPrompt *prompt);
/*! Unmanages all managed windows */
void client_unmanage_all();
void client_unmanage_all(void);
/*! Unmanages a given client */
void client_unmanage(ObClient *client);
@ -340,7 +340,7 @@ ObClient *client_fake_manage(Window win);
void client_fake_unmanage(ObClient *self);
/*! Sets the client list on the root window from the client_list */
void client_set_list();
void client_set_list(void);
/*! Determines if the client should be shown or hidden currently.
@return TRUE if it should be visible; otherwise, FALSE.
@ -715,7 +715,7 @@ void client_set_layer(ObClient *self, gint layer);
guint client_monitor(ObClient *self);
ObClient* client_under_pointer();
ObClient* client_under_pointer(void);
gboolean client_has_group_siblings(ObClient *self);

View file

@ -19,6 +19,6 @@
#ifndef ob__client_menu_h
#define ob__client_menu_h
void client_menu_startup();
void client_menu_startup(void);
#endif

View file

@ -188,10 +188,10 @@ extern GSList *config_menu_files;
extern GSList *config_per_app_settings;
void config_startup(ObtParseInst *i);
void config_shutdown();
void config_shutdown(void);
/*! Create an ObAppSettings structure with the default values */
ObAppSettings* config_create_app_settings();
ObAppSettings* config_create_app_settings(void);
/*! Copies any settings in src to dest, if they are their default value in
src. */
void config_app_settings_copy_non_defaults(const ObAppSettings *src,

View file

@ -21,8 +21,8 @@
#include <glib.h>
void ob_debug_startup();
void ob_debug_shutdown();
void ob_debug_startup(void);
void ob_debug_shutdown(void);
void ob_debug(const gchar *a, ...);

View file

@ -67,12 +67,12 @@ extern StrutPartial dock_strut;
void dock_startup(gboolean reconfig);
void dock_shutdown(gboolean reconfig);
void dock_configure();
void dock_configure(void);
void dock_hide(gboolean hide);
void dock_manage(Window icon_win, Window name_win);
void dock_unmanage_all();
void dock_unmanage_all(void);
void dock_unmanage(ObDockApp *app, gboolean reparent);
void dock_app_drag(ObDockApp *app, XMotionEvent *e);

View file

@ -42,20 +42,20 @@ void event_enter_client(struct _ObClient *client);
/*! Make mouse focus not move at all from the stuff that happens between these
two function calls. */
gulong event_start_ignore_all_enters();
gulong event_start_ignore_all_enters(void);
void event_end_ignore_all_enters(gulong start);
/*! End *all* active and passive grabs on the keyboard */
void event_cancel_all_key_grabs();
void event_cancel_all_key_grabs(void);
/* Halts any focus delay in progress, use this when the user is selecting a
window for focus */
void event_halt_focus_delay();
void event_halt_focus_delay(void);
/*! Compare t1 and t2, taking into account wraparound. True if t1
comes at the same time or later than t2. */
gboolean event_time_after(Time t1, Time t2);
Time event_get_server_time();
Time event_get_server_time(void);
#endif

View file

@ -41,7 +41,7 @@ void focus_shutdown(gboolean reconfig);
void focus_set_client(struct _ObClient *client);
/*! Focus nothing, but let keyboard events be caught. */
void focus_nothing();
void focus_nothing(void);
/*! Call this when you need to focus something! */
struct _ObClient* focus_fallback(gboolean allow_refocus,

View file

@ -37,13 +37,13 @@ void focus_cycle_popup_show(struct _ObClient *c, gboolean iconic_windows,
gboolean all_desktops, gboolean dock_windows,
gboolean desktop_windows,
ObFocusCyclePopupMode mode);
void focus_cycle_popup_hide();
void focus_cycle_popup_hide(void);
void focus_cycle_popup_single_show(struct _ObClient *c,
gboolean iconic_windows,
gboolean all_desktops,
gboolean dock_windows,
gboolean desktop_windows);
void focus_cycle_popup_single_hide();
void focus_cycle_popup_single_hide(void);
#endif

View file

@ -38,8 +38,8 @@ gint grab_server(gboolean grab);
#define grab_pointer(o,c,u) grab_pointer_full(TRUE, (o), (c), (u))
#define ungrab_pointer() grab_pointer_full(FALSE, FALSE, FALSE, OB_CURSOR_NONE)
gboolean grab_on_keyboard();
gboolean grab_on_pointer();
gboolean grab_on_keyboard(void);
gboolean grab_on_pointer(void);
void grab_button_full(guint button, guint state, Window win, guint mask,
gint pointer_mode, ObCursor cursor);
@ -50,6 +50,6 @@ void grab_key(guint keycode, guint state, Window win, gint keyboard_mode);
void ungrab_all_keys(Window win);
void grab_key_passive_count(int change);
void ungrab_passive_key();
void ungrab_passive_key(void);
#endif

View file

@ -34,11 +34,11 @@ extern KeyBindingTree *keyboard_firstnode;
void keyboard_startup(gboolean reconfig);
void keyboard_shutdown(gboolean reconfig);
void keyboard_rebind();
void keyboard_rebind(void);
void keyboard_chroot(GList *keylist);
gboolean keyboard_bind(GList *keylist, struct _ObActionsAct *action);
void keyboard_unbind_all();
void keyboard_unbind_all(void);
void keyboard_event(struct _ObClient *client, const XEvent *e);
/*! @param break_chroots how many chroots to break. -1 means to break them ALL!

View file

@ -168,13 +168,13 @@ void menu_free(ObMenu *menu);
/*! Repopulate a pipe-menu by running its command */
void menu_pipe_execute(ObMenu *self);
/*! Clear a pipe-menu's entries */
void menu_clear_pipe_caches();
void menu_clear_pipe_caches(void);
void menu_show_all_shortcuts(ObMenu *self, gboolean show);
void menu_show(gchar *name, gint x, gint y, gboolean mouse,
struct _ObClient *client);
gboolean menu_hide_delay_reached();
gboolean menu_hide_delay_reached(void);
void menu_set_show_func(ObMenu *menu, ObMenuShowFunc func);
void menu_set_hide_func(ObMenu *menu, ObMenuHideFunc func);

View file

@ -117,7 +117,7 @@ gboolean menu_frame_show_topmenu(ObMenuFrame *self, gint x, gint y,
gboolean menu_frame_show_submenu(ObMenuFrame *self, ObMenuFrame *parent,
ObMenuEntryFrame *parent_entry);
void menu_frame_hide_all();
void menu_frame_hide_all(void);
void menu_frame_hide_all_client(struct _ObClient *client);
void menu_frame_render(ObMenuFrame *self);

View file

@ -31,7 +31,7 @@ void mouse_shutdown(gboolean reconfig);
gboolean mouse_bind(const gchar *buttonstr, const gchar *contextstr,
ObMouseAction mact, struct _ObActionsAct *action);
void mouse_unbind_all();
void mouse_unbind_all(void);
void mouse_event(struct _ObClient *client, XEvent *e);
@ -43,6 +43,6 @@ ObFrameContext mouse_button_frame_context(ObFrameContext context,
/*! If a replay pointer is needed, then do it. Call this when windows are
going to be moving/appearing/disappearing, so that you know the mouse click
will go to the right window */
void mouse_replay_pointer();
void mouse_replay_pointer(void);
#endif

View file

@ -148,7 +148,7 @@ gint main(gint argc, gchar **argv)
* remote_control = 2 -> restart */
OBT_PROP_MSG(ob_screen, obt_root(ob_screen),
OB_CONTROL, remote_control, 0, 0, 0, 0);
obt_display_close(obt_display);
obt_display_close();
exit(EXIT_SUCCESS);
}
@ -384,7 +384,7 @@ gint main(gint argc, gchar **argv)
session_shutdown(being_replaced);
obt_display_close(obt_display);
obt_display_close();
if (restart) {
if (restart_path != NULL) {

View file

@ -48,14 +48,14 @@ extern gboolean ob_replace_wm;
extern gboolean ob_debug_xinerama;
/* The state of execution of the window manager */
ObState ob_state();
ObState ob_state(void);
void ob_restart_other(const gchar *path);
void ob_restart();
void ob_restart(void);
void ob_exit(gint code);
void ob_exit_replace();
void ob_exit_replace(void);
void ob_reconfigure();
void ob_reconfigure(void);
void ob_exit_with_error(const gchar *msg);

View file

@ -77,7 +77,7 @@ struct _ObPagerPopup
RrAppearance *unhilight;
};
ObPopup *popup_new();
ObPopup *popup_new(void);
void popup_free(ObPopup *self);
/*! Position the popup. The gravity rules are not the same X uses for windows,
@ -105,7 +105,7 @@ void popup_hide(ObPopup *self);
RrAppearance *popup_icon_appearance(ObPopup *self);
ObIconPopup *icon_popup_new();
ObIconPopup *icon_popup_new(void);
void icon_popup_free(ObIconPopup *self);
#define icon_popup_show(s, t, i) icon_popup_delay_show((s),0,(t),(i))
@ -124,7 +124,7 @@ void icon_popup_delay_show(ObIconPopup *self, gulong usec,
#define icon_popup_set_text_align(p, j) popup_set_text_align((p)->popup,(j))
void icon_popup_icon_size_multiplier(ObIconPopup *self, guint wm, guint hm);
ObPagerPopup *pager_popup_new();
ObPagerPopup *pager_popup_new(void);
void pager_popup_free(ObPagerPopup *self);
#define pager_popup_show(s, t, d) pager_popup_delay_show((s),0,(t),(d))

View file

@ -53,7 +53,7 @@ extern ObDesktopLayout screen_desktop_layout;
extern gchar **screen_desktop_names;
/*! Take over the screen, set the basic hints on it claming it as ours */
gboolean screen_annex();
gboolean screen_annex(void);
/*! Once the screen is ours, set up its initial state */
void screen_startup(gboolean reconfig);
@ -61,7 +61,7 @@ void screen_startup(gboolean reconfig);
void screen_shutdown(gboolean reconfig);
/*! Figure out the new size of the screen and adjust stuff for it */
void screen_resize();
void screen_resize(void);
/*! Change the number of available desktops */
void screen_set_num_desktops(guint num);
@ -78,7 +78,7 @@ guint screen_find_desktop(guint from, ObDirection dir,
/*! Show the desktop popup/notification */
void screen_show_desktop_popup(guint d);
/*! Hide it */
void screen_hide_desktop_popup();
void screen_hide_desktop_popup(void);
/*! Shows and focuses the desktop and hides all the client windows, or
returns to the normal state, showing client windows.
@ -89,22 +89,22 @@ void screen_hide_desktop_popup();
void screen_show_desktop(gboolean show, struct _ObClient *show_only);
/*! Updates the desktop layout from the root property if available */
void screen_update_layout();
void screen_update_layout(void);
/*! Get desktop names from the root window property */
void screen_update_desktop_names();
void screen_update_desktop_names(void);
/*! Installs or uninstalls a colormap for a client. If client is NULL, then
it handles the root colormap. */
void screen_install_colormap(struct _ObClient *client, gboolean install);
void screen_update_areas();
void screen_update_areas(void);
Rect *screen_physical_area_all_monitors();
Rect *screen_physical_area_all_monitors(void);
Rect *screen_physical_area_monitor(guint head);
Rect *screen_physical_area_active();
Rect *screen_physical_area_active(void);
/* doesn't include struts which the search area is already outside of when
'search' is not NULL */
@ -127,7 +127,7 @@ guint screen_find_monitor(Rect *search);
/*! Sets the root cursor. This function decides which cursor to use, but you
gotta call it to let it know it should change. */
void screen_set_root_cursor();
void screen_set_root_cursor(void);
/*! Gives back the pointer's position in x and y. Returns TRUE if the pointer
is on this screen and FALSE if it is on another screen. */

View file

@ -43,7 +43,7 @@ extern GList *stacking_list;
/*! Sets the window stacking list on the root window from the
stacking_list */
void stacking_set_list();
void stacking_set_list(void);
void stacking_add(struct _ObWindow *win);
void stacking_add_nonintrusive(struct _ObWindow *win);
@ -56,7 +56,7 @@ void stacking_raise(struct _ObWindow *window);
void stacking_temp_raise(struct _ObWindow *window);
/*! Restores any temporarily raised windows to their correct place */
void stacking_restore();
void stacking_restore(void);
/*! Lowers a window below all others in its stacking layer */
void stacking_lower(struct _ObWindow *window);

View file

@ -25,7 +25,7 @@
void sn_startup(gboolean reconfig);
void sn_shutdown(gboolean reconfig);
gboolean sn_app_starting();
gboolean sn_app_starting(void);
/*! Notify that an app has started
@param wmclass the WM_CLASS[1] hint
@ -45,6 +45,6 @@ void sn_setup_spawn_environment(const gchar *program, const gchar *name,
/* Tell startup notification we're not actually running the program we
told it we were
*/
void sn_spawn_cancel();
void sn_spawn_cancel(void);
#endif