SURFEX v8.1
General documentation of Surfex
lfi_hndl.h
Go to the documentation of this file.
1 #ifndef _LFI_HNDL_H
2 #define _LFI_HNDL_H
3 /**** *lfi_hndl.h* - LFI handle definition
4  *
5  * Author.
6  * -------
7  * Philippe Marguinaud *METEO-FRANCE*
8  * Original : 12-08-2013
9  *
10  */
11 
12 #include "lfi_type.h"
13 #include "lfi_args.h"
14 #include "lfi_call.h"
15 #include "lfi_verb.h"
16 
17 typedef struct lfi_hndl_t
18 {
19  lficb_t * cb; /* LFI routines */
20  lficb_verb_t * cb_verb; /* LFI message routines */
21  void * data; /* LFI library data */
22  struct lfi_hndl_t * next; /* Next LFI library */
23  void (*destroy) (struct lfi_hndl_t *); /* Destroy LFI library */
24  int (*is_verb) (struct lfi_hndl_t *, integer64 *); /* Check if unit has verbose mode on */
25  int (*is_open) (struct lfi_hndl_t *, integer64 *); /* Check if unit is opened */
26  int (*is_fatl) (struct lfi_hndl_t *, integer64 *); /* Check if unit has fatal errors enabled */
27 }
29 
30 /* Retrieve LFI library associated with a given KNUMER */
31 extern lfi_hndl_t * lfi_hndl (void *, integer64 *);
32 
33 /* Get LFI libraries list */
34 extern lfi_hndl_t * lfi_hndl_list (void *);
35 
36 #endif
37 
int(* is_fatl)(struct lfi_hndl_t *, integer64 *)
Definition: lfi_hndl.h:26
int(* is_verb)(struct lfi_hndl_t *, integer64 *)
Definition: lfi_hndl.h:24
void(* destroy)(struct lfi_hndl_t *)
Definition: lfi_hndl.h:23
struct lfi_hndl_t * next
Definition: lfi_hndl.h:22
long long int integer64
Definition: lfi_type.h:15
lficb_t * cb
Definition: lfi_hndl.h:19
lfi_hndl_t * lfi_hndl_list(void *)
Definition: lfi_hndl.c:18
void * data
Definition: lfi_hndl.h:21
lfi_hndl_t * lfi_hndl(void *, integer64 *)
Definition: lfi_hndl.c:41
lficb_verb_t * cb_verb
Definition: lfi_hndl.h:20
int(* is_open)(struct lfi_hndl_t *, integer64 *)
Definition: lfi_hndl.h:25
struct lfi_hndl_t lfi_hndl_t