cli: remove useless static function prototypes
This commit is contained in:
@@ -141,25 +141,11 @@ typedef struct {
|
|||||||
char **argv;
|
char **argv;
|
||||||
} ArgsInfo;
|
} ArgsInfo;
|
||||||
|
|
||||||
extern GMainLoop *loop; /* glib main loop variable */
|
/* glib main loop variable - defined in nmcli.c */
|
||||||
|
extern GMainLoop *loop;
|
||||||
|
|
||||||
static ArgsInfo args_info;
|
static ArgsInfo args_info;
|
||||||
|
|
||||||
/* static function prototypes */
|
|
||||||
static void usage (void);
|
|
||||||
static void quit (void);
|
|
||||||
static void show_connection (NMConnection *data, gpointer user_data);
|
|
||||||
static NMConnection *find_connection (GSList *list, const char *filter_type, const char *filter_val);
|
|
||||||
static gboolean find_device_for_connection (NmCli *nmc, NMConnection *connection, const char *iface, const char *ap,
|
|
||||||
const char *nsp, NMDevice **device, const char **spec_object, GError **error);
|
|
||||||
static const char *active_connection_state_to_string (NMActiveConnectionState state);
|
|
||||||
static void active_connection_state_cb (NMActiveConnection *active, GParamSpec *pspec, gpointer user_data);
|
|
||||||
static void get_connections_cb (NMRemoteSettings *settings, gpointer user_data);
|
|
||||||
static NMCResultCode do_connections_list (NmCli *nmc, int argc, char **argv);
|
|
||||||
static NMCResultCode do_connections_status (NmCli *nmc, int argc, char **argv);
|
|
||||||
static NMCResultCode do_connection_up (NmCli *nmc, int argc, char **argv);
|
|
||||||
static NMCResultCode do_connection_down (NmCli *nmc, int argc, char **argv);
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage (void)
|
usage (void)
|
||||||
{
|
{
|
||||||
|
@@ -236,18 +236,8 @@ static NmcOutputField nmc_fields_dev_wimax_list[] = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* static function prototypes */
|
/* glib main loop variable - defined in nmcli.c */
|
||||||
static void usage (void);
|
extern GMainLoop *loop;
|
||||||
static const char *device_state_to_string (NMDeviceState state);
|
|
||||||
static NMCResultCode do_devices_status (NmCli *nmc, int argc, char **argv);
|
|
||||||
static NMCResultCode do_devices_list (NmCli *nmc, int argc, char **argv);
|
|
||||||
static NMCResultCode do_device_disconnect (NmCli *nmc, int argc, char **argv);
|
|
||||||
static NMCResultCode do_device_wifi (NmCli *nmc, int argc, char **argv);
|
|
||||||
#if WITH_WIMAX
|
|
||||||
static NMCResultCode do_device_wimax (NmCli *nmc, int argc, char **argv);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern GMainLoop *loop; /* glib main loop variable */
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage (void)
|
usage (void)
|
||||||
|
@@ -57,16 +57,9 @@ static NmcOutputField nmc_fields_nm_status[] = {
|
|||||||
#define NMC_FIELDS_NM_WWAN "WWAN"
|
#define NMC_FIELDS_NM_WWAN "WWAN"
|
||||||
#define NMC_FIELDS_NM_WIMAX "WIMAX"
|
#define NMC_FIELDS_NM_WIMAX "WIMAX"
|
||||||
|
|
||||||
|
/* glib main loop variable - defined in nmcli.c */
|
||||||
extern GMainLoop *loop;
|
extern GMainLoop *loop;
|
||||||
|
|
||||||
/* static function prototypes */
|
|
||||||
static void usage (void);
|
|
||||||
static void quit (void);
|
|
||||||
static const char *nm_state_to_string (NMState state);
|
|
||||||
static NMCResultCode show_nm_status (NmCli *nmc);
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage (void)
|
usage (void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user