OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
streamf.h File Reference
#include "olog.h"
#include "phash.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for streamf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  olog_streamf_arguments
 
struct  print_command
 
struct  olog_streamf
 

Typedefs

typedef int(* olog_print_callback) (olog *olog, olog_backend *backend, uint8_t severity, va_list args)
 
typedef int(* olog_print_callback_no_vargs) (olog *olog, olog_backend *backend, uint8_t severity)
 
typedef int(* olog_print_callback_no_args) (olog *olog, olog_backend *backend)
 
typedef enum streamf_type_t streamf_type
 

Enumerations

enum  streamf_type_t {
  STREAMF_TYPE_STRING = 0, STREAMF_TYPE_FUNCTION = 1, STREAMF_TYPE_FUNCTION_NO_VARGS = 2, STREAMF_TYPE_FUNCTION_NO_ARGS = 3,
  STREAMF_TYPE_LOOKUP_HASH = 16, STREAMF_TYPE_LOOKUP_ARRAY = 32
}
 

Functions

olog_backend olog_backend_streamf (olog_streamf_arguments *arguments, int8_t min_log_level, int8_t max_log_level)
 

Typedef Documentation

◆ olog_print_callback

typedef int(* olog_print_callback) (olog *olog, olog_backend *backend, uint8_t severity, va_list args)

Definition at line 23 of file streamf.h.

◆ olog_print_callback_no_args

typedef int(* olog_print_callback_no_args) (olog *olog, olog_backend *backend)

Definition at line 25 of file streamf.h.

◆ olog_print_callback_no_vargs

typedef int(* olog_print_callback_no_vargs) (olog *olog, olog_backend *backend, uint8_t severity)

Definition at line 24 of file streamf.h.

◆ streamf_type

Definition at line 36 of file streamf.h.

Enumeration Type Documentation

◆ streamf_type_t

Enumerator
STREAMF_TYPE_STRING 
STREAMF_TYPE_FUNCTION 
STREAMF_TYPE_FUNCTION_NO_VARGS 
STREAMF_TYPE_FUNCTION_NO_ARGS 
STREAMF_TYPE_LOOKUP_HASH 
STREAMF_TYPE_LOOKUP_ARRAY 

Definition at line 27 of file streamf.h.

Function Documentation

◆ olog_backend_streamf()

olog_backend olog_backend_streamf ( olog_streamf_arguments arguments,
int8_t  min_log_level,
int8_t  max_log_level 
)

Definition at line 362 of file streamf.c.