Skip to content

Commit

Permalink
newtest
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed May 22, 2024
1 parent 02e6f6b commit 7aa583f
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions lapiz/smclient/eggsmclient-xsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,22 @@ static void sm_client_xsmp_set_restart_command (EggSMClient *client,
static void sm_client_xsmp_will_quit (EggSMClient *client,
gboolean will_quit);
static gboolean sm_client_xsmp_end_session (EggSMClient *client,
// EggSMClientEndStyle style,
EggSMClientEndStyle style G_GNUC_UNUSED,
gboolean request_confirmation);

static void xsmp_save_yourself (//SmcConn smc_conn,
static void xsmp_save_yourself (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data,
int save_style,
Bool shutdown,
int interact_style,
Bool fast);
static void xsmp_die (//SmcConn smc_conn,
static void xsmp_die (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data);
static void xsmp_save_complete (//SmcConn smc_conn,
static void xsmp_save_complete (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data);
static void xsmp_shutdown_cancelled (//SmcConn smc_conn,
static void xsmp_shutdown_cancelled (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data);
static void xsmp_interact (//SmcConn smc_conn,
static void xsmp_interact (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data);

static SmProp *array_prop (const char *name,
Expand All @@ -161,13 +161,13 @@ static void update_pending_events (EggSMClientXSMP *xsmp);

static void ice_init (void);
static gboolean process_ice_messages (IceConn ice_conn);
static void smc_error_handler (void/*SmcConn smc_conn,
Bool swap,
int offending_minor_opcode,
unsigned long offending_sequence,
int error_class,
int severity,
SmPointer values*/);
static void smc_error_handler (SmcConn smc_conn G_GNUC_UNUSED,
Bool swap G_GNUC_UNUSED,
int offending_minor_opcode G_GNUC_UNUSED,
unsigned long offending_sequence G_GNUC_UNUSED,
int error_class G_GNUC_UNUSED,
int severity G_GNUC_UNUSED,
SmPointer values G_GNUC_UNUSED);

G_DEFINE_TYPE (EggSMClientXSMP, egg_sm_client_xsmp, EGG_TYPE_SM_CLIENT)

Expand Down Expand Up @@ -442,7 +442,7 @@ sm_client_xsmp_will_quit (EggSMClient *client,

static gboolean
sm_client_xsmp_end_session (EggSMClient *client,
// EggSMClientEndStyle style,
EggSMClientEndStyle style G_GNUC_UNUSED,
gboolean request_confirmation)
{
EggSMClientXSMP *xsmp = (EggSMClientXSMP *)client;
Expand Down Expand Up @@ -605,7 +605,7 @@ fix_broken_state (EggSMClientXSMP *xsmp, const char *message,
/* SM callbacks */

static void
xsmp_save_yourself (//SmcConn smc_conn,
xsmp_save_yourself (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data,
int save_type,
Bool shutdown,
Expand Down Expand Up @@ -924,7 +924,7 @@ save_state (EggSMClientXSMP *xsmp)
}

static void
xsmp_interact (//SmcConn smc_conn,
xsmp_interact (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data)
{
EggSMClientXSMP *xsmp = client_data;
Expand All @@ -944,7 +944,7 @@ xsmp_interact (//SmcConn smc_conn,
}

static void
xsmp_die (//SmcConn smc_conn,
xsmp_die (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data)
{
EggSMClientXSMP *xsmp = client_data;
Expand All @@ -958,7 +958,7 @@ xsmp_die (//SmcConn smc_conn,
}

static void
xsmp_save_complete (//SmcConn smc_conn,
xsmp_save_complete (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data)
{
EggSMClientXSMP *xsmp = client_data;
Expand All @@ -973,7 +973,7 @@ xsmp_save_complete (//SmcConn smc_conn,
}

static void
xsmp_shutdown_cancelled (//SmcConn smc_conn,
xsmp_shutdown_cancelled (SmcConn smc_conn G_GNUC_UNUSED,
SmPointer client_data)
{
EggSMClientXSMP *xsmp = client_data;
Expand Down Expand Up @@ -1253,16 +1253,16 @@ card8_prop (const char *name, unsigned char value)
#include <X11/ICE/ICElib.h>
#include <fcntl.h>

static void ice_error_handler (void/*IceConn ice_conn,
Bool swap,
int offending_minor_opcode,
unsigned long offending_sequence,
int error_class,
int severity,
IcePointer values*/);
static void ice_io_error_handler (void/*IceConn ice_conn*/);
static void ice_error_handler (IceConn ice_conn G_GNUC_UNUSED,
Bool swap G_GNUC_UNUSED,
int offending_minor_opcode G_GNUC_UNUSED,
unsigned long offending_sequence G_GNUC_UNUSED,
int error_class G_GNUC_UNUSED,
int severity G_GNUC_UNUSED,
IcePointer values G_GNUC_UNUSED);
static void ice_io_error_handler (IceConn ice_conn G_GNUC_UNUSED);
static void ice_connection_watch (IceConn ice_conn,
// IcePointer client_data,
IcePointer client_data G_GNUC_UNUSED,
Bool opening,
IcePointer *watch_data);

Expand Down Expand Up @@ -1299,16 +1299,16 @@ process_ice_messages (IceConn ice_conn)
}

static gboolean
ice_iochannel_watch (/*GIOChannel *channel,
GIOCondition condition,*/
ice_iochannel_watch (GIOChannel *channel G_GNUC_UNUSED,
GIOCondition condition G_GNUC_UNUSED,
gpointer client_data)
{
return process_ice_messages (client_data);
}

static void
ice_connection_watch (IceConn ice_conn,
// IcePointer client_data,
IcePointer client_data G_GNUC_UNUSED,
Bool opening,
IcePointer *watch_data)
{
Expand All @@ -1335,31 +1335,31 @@ ice_connection_watch (IceConn ice_conn,
}

static void
ice_error_handler (void/*IceConn ice_conn,
Bool swap,
int offending_minor_opcode,
unsigned long offending_sequence,
int error_class,
int severity,
IcePointer values*/)
ice_error_handler (IceConn ice_conn G_GNUC_UNUSED,
Bool swap G_GNUC_UNUSED,
int offending_minor_opcode G_GNUC_UNUSED,
unsigned long offending_sequence G_GNUC_UNUSED,
int error_class G_GNUC_UNUSED,
int severity G_GNUC_UNUSED,
IcePointer values G_GNUC_UNUSED)
{
/* Do nothing */
}

static void
ice_io_error_handler (void/*IceConn ice_conn*/)
ice_io_error_handler (IceConn ice_conn G_GNUC_UNUSED)
{
/* Do nothing */
}

static void
smc_error_handler (/*SmcConn smc_conn,
Bool swap,
int offending_minor_opcode,
unsigned long offending_sequence,
int error_class,
int severity,
SmPointer values*/void)
smc_error_handler (SmcConn smc_conn G_GNUC_UNUSED,
Bool swap G_GNUC_UNUSED,
int offending_minor_opcode G_GNUC_UNUSED,
unsigned long offending_sequence G_GNUC_UNUSED,
int error_class G_GNUC_UNUSED,
int severity G_GNUC_UNUSED,
SmPointer values G_GNUC_UNUSED)
{
/* Do nothing */
}

0 comments on commit 7aa583f

Please sign in to comment.