1 /* sc.h - XSMP client support */
7 #include <X11/SM/SMlib.h>
9 typedef struct _SmProperty
{
14 typedef struct _SmClient SmClient
;
19 gboolean (*save_yourself_fn
)(SmClient
*client
);
20 void (*shutdown_cancelled_fn
)(SmClient
*client
);
21 void (*save_complete_fn
)(SmClient
*client
);
22 void (*die_fn
)(SmClient
*client
);
29 gboolean
sc_session_up();
30 SmClient
*sc_new(gchar
*client_id
);
31 gboolean
sc_connect(SmClient
*client
);
32 void sc_get_prop_value(SmClient
*client
, const gchar
*name
,
33 SmPropValue
**val_ret
, gint
*nvals_ret
);
34 void sc_set_list_of_array_prop(SmClient
*client
, const gchar
*name
,
35 const gchar
*vals
[], gint nvals
);
36 void sc_set_array_prop(SmClient
*client
, const gchar
*name
, const gchar
*vals
);
37 void sc_set_card_prop(SmClient
*client
, const gchar
*name
, gchar val
);
38 void sc_register_properties(SmClient
*client
);
39 void sc_destroy(SmClient
*client
);
41 #endif /* _SC_ALU_H */