Cross reference for modules/er/er_paths.c of index.

# File modules/er/er_paths.c

      $Revision: 1.3 $

      Error reporting (er) er_paths.c - parser callback functions for path
                                        & filter creation/modification/deletion

      Status: NOT REVUED, PARTLY TESTED

      Design and implementation by: Marek Bukowy

## Included Files

- `#include "modules/er/erroutines.h"`
  - `#include <stdio.h>`
  - `#include <unistd.h>`
  - `#include <stdlib.h>`
  - `#include <assert.h>`
  - `#include <time.h>`
  - `#include <stdarg.h>`
  - `#include <strings.h>`
  - `#include <glib.h>`
  - `#include <pthread.h>`
  - `#include <include/bitmask.h>`
  - `#include <include/stubs.h>`
  - `#include "modules/er/er_facilities.h"`
    - `#include <include/erroutines.h>`
    - `#include "include/er_RX_errors.h"`
    - `#include "modules/er/er_ER_errors.h"`
    - `#include "include/er_IP_errors.h"`
    - `#include "include/er_UP_errors.h"`
    - `#include "include/er_UT_errors.h"`
    - `#include "include/er_WH_errors.h"`
    - `#include "include/er_RP_errors.h"`
    - `#include "include/er_QI_errors.h"`
    - `#include "include/er_QC_errors.h"`
    - `#include "include/er_PW_errors.h"`
    - `#include "include/er_SK_errors.h"`
    - `#include "include/er_TH_errors.h"`
    - `#include "include/er_SQ_errors.h"`
    - `#include "include/er_PM_errors.h"`
    - `#include "include/er_MM_errors.h"`
    - `#include "include/er_SV_errors.h"`
    - `#include "include/er_AC_errors.h"`
    - `#include "include/er_UD_errors.h"`
    - `#include "include/er_PA_errors.h"`
    - `#include "include/er_PC_errors.h"`
  - `#include "modules/er/er_aspects.h"`
    - `#include "modules/er/erroutines.h"`
  - `#include "modules/er/er_formats.h"`

- `#include "include/memwrap.h"`
  - `#include <include/erroutines.h>`
  - `#include <glib.h>`

## Global Function er_add_exec_arg()

`void er_add_exec_arg ( er_path_t* pathptr, char* arg )`

Calls: | calloc(), free(), memcpy(), strdup()
Called by: | er_yyparse() | modules/er/er.yacc.tab.c

## Global Function er_add_filter()

`er_ret_t er_add_filter ( er_path_t* pathptr, er_filter_t* filter )`

Prototyped in: | modules/er/erroutines.h
Calls: | g_list_append(), malloc(), memcpy()
Called by: | er_attach_filter_chain() | modules/er/er_paths.c
| er_yyparse() | modules/er/er.yacc.tab.c

## Global Function er_attach_filter_chain()

`er_ret_t er_attach_filter_chain ( char* key, GList* filterlist )`

Calls: | NOERR() | modules/er/er.c
| er_add_filter() | modules/er/er_paths.c
| er_find_path_byname() | modules/er/er_paths.c
| g_list_first()
Called by: | er_yyparse() | modules/er/er.yacc.tab.c

## Global Function er_delete_filter()

`er_ret_t er_delete_filter ( char* key, unsigned int filterid )`

Calls: | er_find_path_byname() | modules/er/er_paths.c
| er_upd_asparray() | modules/er/er_paths.c
| free(), g_list_length(), g_list_nth_data(), g_list_remove()
Called by: | er_yyparse() | modules/er/er.yacc.tab.c

## Global Function er_delete_path()

`er_ret_t er_delete_path ( char* key )`

Calls: | er_find_path_byname() | modules/er/er_paths.c
| er_free_dynadescr() | modules/er/er_paths.c
| er_upd_asparray() | modules/er/er_paths.c
| free(), g_list_remove(), wr_real_clear_list()
Called by: | er_yyparse() | modules/er/er.yacc.tab.c
References Variables: | er_pathlist | modules/er/er.c

## Global Function er_free_dynadescr()

`void er_free_dynadescr ( er_path_t* pathptr )`

Calls: | free()
Called by: | er_delete_path() | modules/er/er_paths.c

## Global Function er_modify_path()

`er_ret_t er_modify_path ( er_path_t* newpath, char* key )`

Calls: | er_find_path_byname() | modules/er/er_paths.c
| er_upd_asparray() | modules/er/er_paths.c
Called by: | er_yyparse() | modules/er/er.yacc.tab.c

## Global Function er_print_paths()

`void er_print_paths ( char** retbuf )`

Calls: | er_print_one_path() | modules/er/er_paths.c
| g_list_first(), g_string_free(), g_string_sized_new()
References Variables: | er_pathlist | modules/er/er.c

## Global Function er_register_path()

`er_ret_t er_register_path ( er_path_t* path, char* key )`

Calls: | er_find_path_byname() | modules/er/er_paths.c
| er_upd_asparray() | modules/er/er_paths.c
| calloc(), g_list_append(), memcpy(), strncpy()
Called by: | er_yyparse() | modules/er/er.yacc.tab.c
References Variables: | er_pathlist | modules/er/er.c

## Global Function er_upd_asparray()

`void er_upd_asparray ( void )`

Calls: | MA_isset(), g_list_first()
Called by: | er_delete_filter() | modules/er/er_paths.c
| er_delete_path() | modules/er/er_paths.c
| er_modify_path() | modules/er/er_paths.c
| er_register_path() | modules/er/er_paths.c
References Variables: | er_asparray | modules/er/er.c
| er_pathlist | modules/er/er.c

## Local Function er_find_path_byname()

`static er_path_t* er_find_path_byname ( char* key )`

Calls: | g_list_first(), strcmp()
Called by: | er_attach_filter_chain() | modules/er/er_paths.c
| er_delete_filter() | modules/er/er_paths.c
| er_delete_path() | modules/er/er_paths.c
| er_modify_path() | modules/er/er_paths.c
| er_register_path() | modules/er/er_paths.c
References Variables: | er_pathlist | modules/er/er.c

## Local Function er_print_aspmask()

`static void er_print_aspmask ( mask_t facmask, unsigned aspmask, GString* g_reply )`

Calls: | er_getaspsym() | modules/er/er_arrays.c
| g_string_append(), g_string_truncate(), strlen()
Called by: | er_print_one_filter() | modules/er/er_paths.c

## Local Function er_print_facmask()

`static void er_print_facmask ( mask_t facmask, GString* g_reply )`

Calls: | MA_isset(), g_string_sprintfa(), g_string_truncate(), strlen()
Called by: | er_print_one_filter() | modules/er/er_paths.c
References Variables: | er_fac_err | modules/er/er.c

## Local Function er_print_format()

`static void er_print_format ( int format, GString* g_reply )`

Calls: | g_string_sprintfa(), g_string_truncate(), strlen()
Called by: | er_print_one_path() | modules/er/er_paths.c
References Variables: | er_formarr | modules/er/er.c

## Local Function er_print_one_filter()

`static void er_print_one_filter ( er_filter_t* filtptr, GString* g_reply )`

Calls: | er_getsevsym() | modules/er/er_arrays.c
| er_print_aspmask() | modules/er/er_paths.c
| er_print_facmask() | modules/er/er_paths.c
| g_string_sprintfa()
Called by: | er_print_one_path() | modules/er/er_paths.c

## Local Function er_print_one_path()

`static void er_print_one_path ( er_path_t* pathptr, GString* g_reply )`

Calls: | er_print_format() | modules/er/er_paths.c
| er_print_one_filter() | modules/er/er_paths.c
| er_print_one_path_descr() | modules/er/er_paths.c
| g_list_first(), g_string_sprintfa()
Called by: | er_print_paths() | modules/er/er_paths.c

## Local Function er_print_one_path_descr()

`static void er_print_one_path_descr ( er_path_t* pathptr, GString* g_reply )`

Calls: | g_string_sprintfa()
Called by: | er_print_one_path() | modules/er/er_paths.c