OpenVPN
Functions | Variables
main.c File Reference
#include "tap.h"
#include "error.h"
#include <objbase.h>
#include <setupapi.h>
#include <stdio.h>
#include <tchar.h>
Include dependency graph for main.c:

Go to the source code of this file.

Functions

static void usage (void)
 Print the help message. More...
 
int __cdecl _tmain (int argc, LPCTSTR argv[])
 Program entry point. More...
 
bool dont_mute (unsigned int flags)
 Check muting filter. More...
 
void x_msg_va (const unsigned int flags, const char *format, va_list arglist)
 

Variables

const TCHAR title_string []
 
static const TCHAR usage_message [] =
 
static const TCHAR usage_message_create [] =
 
static const TCHAR usage_message_list [] =
 
static const TCHAR usage_message_delete [] =
 

Function Documentation

◆ _tmain()

int __cdecl _tmain ( int  argc,
LPCTSTR  argv[] 
)

◆ dont_mute()

bool dont_mute ( unsigned int  flags)

Check muting filter.

Definition at line 354 of file main.c.

◆ usage()

static void usage ( void  )
static

Print the help message.

Definition at line 119 of file main.c.

References title_string, and usage_message.

Referenced by _tmain().

◆ x_msg_va()

void x_msg_va ( const unsigned int  flags,
const char *  format,
va_list  arglist 
)

Definition at line 363 of file main.c.

References M_ERRNO.

Variable Documentation

◆ title_string

const TCHAR title_string[]
Initial value:
=
TEXT(PACKAGE_NAME) TEXT(" ") TEXT(PACKAGE_VERSION)
TEXT(" built on ") TEXT(__DATE__)
#define PACKAGE_NAME
Definition: config.h:730
#define PACKAGE_VERSION
Definition: config.h:742

Definition at line 46 of file main.c.

Referenced by _tmain(), and usage().

◆ usage_message

const TCHAR usage_message[] =
static

Definition at line 51 of file main.c.

Referenced by usage().

◆ usage_message_create

const TCHAR usage_message_create[] =
static

Definition at line 68 of file main.c.

Referenced by _tmain().

◆ usage_message_delete

const TCHAR usage_message_delete[] =
static

Definition at line 104 of file main.c.

Referenced by _tmain().

◆ usage_message_list

const TCHAR usage_message_list[] =
static

Definition at line 90 of file main.c.

Referenced by _tmain().