AT&T ECOMP Vendor Event Listener library  0.1
Macros | Enumerations | Functions | Variables
evel_demo.c File Reference

Utility providing example use of the ECOMP Vendor Event Listener API. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <sys/signal.h>
#include <pthread.h>
#include <mcheck.h>
#include <sys/time.h>
#include "evel.h"
#include "evel_demo.h"
#include "evel_test_control.h"
Include dependency graph for evel_demo.c:

Go to the source code of this file.

Macros

#define DEFAULT_SLEEP_SECONDS   3
 
#define MINIMUM_SLEEP_SECONDS   1
 

Enumerations

enum  SERVICE_EVENT {
  SERVICE_CODEC, SERVICE_TRANSCODING, SERVICE_RTCP, SERVICE_EOC_VQM,
  SERVICE_MARKER
}
 

Functions

int main (int argc, char **argv)
 Main function. More...
 
void * signal_watcher (void *void_sig_set)
 Signal watcher. More...
 

Variables

unsigned long long epoch_start = 0
 

Detailed Description

Utility providing example use of the ECOMP Vendor Event Listener API.

This software is intended to show the essential elements of the library's use.

License

Copyright(c) <2016>, AT&T Intellectual Property. All other rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the AT&T.
  4. Neither the name of AT&T nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY AT&T INTELLECTUAL PROPERTY ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AT&T INTELLECTUAL PROPERTY BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file evel_demo.c.

Macro Definition Documentation

§ DEFAULT_SLEEP_SECONDS

#define DEFAULT_SLEEP_SECONDS   3

Definition at line 128 of file evel_demo.c.

§ MINIMUM_SLEEP_SECONDS

#define MINIMUM_SLEEP_SECONDS   1

Definition at line 129 of file evel_demo.c.

Enumeration Type Documentation

§ SERVICE_EVENT

Enumerator
SERVICE_CODEC 
SERVICE_TRANSCODING 
SERVICE_RTCP 
SERVICE_EOC_VQM 
SERVICE_MARKER 

Definition at line 133 of file evel_demo.c.

Function Documentation

§ main()

int main ( int  argc,
char **  argv 
)

Main function.

Parses the command-line then ...

Parameters
[in]argcArgument count.
[in]argvArgument vector - for usage see usage_text.

Definition at line 177 of file evel_demo.c.

§ signal_watcher()

void* signal_watcher ( void *  void_sig_set)

Signal watcher.

Signal catcher for incoming signal processing. Work out which signal has been received and process it accordingly.

param[in] void_sig_set The signal mask to listen for.

Definition at line 541 of file evel_demo.c.

Variable Documentation

§ epoch_start

unsigned long long epoch_start = 0

Definition at line 131 of file evel_demo.c.