mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 01:58:00 +02:00
cli: remove useless static function prototypes
This commit is contained in:
parent
c01db4ac51
commit
568820a309
3 changed files with 5 additions and 36 deletions
|
|
@ -141,25 +141,11 @@ typedef struct {
|
|||
char **argv;
|
||||
} ArgsInfo;
|
||||
|
||||
extern GMainLoop *loop; /* glib main loop variable */
|
||||
/* glib main loop variable - defined in nmcli.c */
|
||||
extern GMainLoop *loop;
|
||||
|
||||
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
|
||||
usage (void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -236,18 +236,8 @@ static NmcOutputField nmc_fields_dev_wimax_list[] = {
|
|||
#endif
|
||||
|
||||
|
||||
/* static function prototypes */
|
||||
static void usage (void);
|
||||
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 */
|
||||
/* glib main loop variable - defined in nmcli.c */
|
||||
extern GMainLoop *loop;
|
||||
|
||||
static void
|
||||
usage (void)
|
||||
|
|
|
|||
|
|
@ -57,16 +57,9 @@ static NmcOutputField nmc_fields_nm_status[] = {
|
|||
#define NMC_FIELDS_NM_WWAN "WWAN"
|
||||
#define NMC_FIELDS_NM_WIMAX "WIMAX"
|
||||
|
||||
|
||||
/* glib main loop variable - defined in nmcli.c */
|
||||
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
|
||||
usage (void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue