libxcoder  5.2.0
ni_rsrc_list.c File Reference

Application to query and print info about NETINT video processing devices on system. More...

#include <stdio.h>
#include <stdlib.h>
#include "ni_rsrc_api.h"
#include "ni_util.h"

Go to the source code of this file.

Data Structures

struct  dyn_str_buf
 

Macros

#define DYN_STR_BUF_CHUNK_SIZE   4096
 

Typedefs

typedef struct dyn_str_buf dyn_str_buf_t
 

Enumerations

enum  outFormat {
  FMT_TEXT, FMT_FULL_TEXT, FMT_JSON, FMT_TEXT,
  FMT_FULL_TEXT, FMT_SIMPLE_TEXT, FMT_JSON, FMT_JSON1,
  FMT_JSON2, FMT_EXTRA
}
 

Functions

int strcat_dyn_buf (dyn_str_buf_t *dyn_str_buf, const char *fmt,...)
 Accumulate string data in a dynamically sized buffer. This is useful to separate error messages from json and table output. More...
 
void clear_dyn_str_buf (dyn_str_buf_t *dyn_str_buf)
 
int32_t main (int argc, char *argv[])
 

Detailed Description

Application to query and print info about NETINT video processing devices on system.


Definition in file ni_rsrc_list.c.

Macro Definition Documentation

◆ DYN_STR_BUF_CHUNK_SIZE

#define DYN_STR_BUF_CHUNK_SIZE   4096

Definition at line 57 of file ni_rsrc_list.c.

Typedef Documentation

◆ dyn_str_buf_t

typedef struct dyn_str_buf dyn_str_buf_t

Enumeration Type Documentation

◆ outFormat

enum outFormat
Enumerator
FMT_TEXT 
FMT_FULL_TEXT 
FMT_JSON 
FMT_TEXT 
FMT_FULL_TEXT 
FMT_SIMPLE_TEXT 
FMT_JSON 
FMT_JSON1 
FMT_JSON2 
FMT_EXTRA 

Definition at line 42 of file ni_rsrc_list.c.

Function Documentation

◆ clear_dyn_str_buf()

void clear_dyn_str_buf ( dyn_str_buf_t dyn_str_buf)

Definition at line 133 of file ni_rsrc_list.c.

◆ main()

int32_t main ( int  argc,
char *  argv[] 
)

Definition at line 647 of file ni_rsrc_list.c.

◆ strcat_dyn_buf()

int strcat_dyn_buf ( dyn_str_buf_t dyn_str_buf,
const char *  fmt,
  ... 
)

Accumulate string data in a dynamically sized buffer. This is useful to separate error messages from json and table output.


Parameters
[in]*dyn_str_bufpointer to structure holding dyn_str_buf info
[in]*fmtprintf format specifier
[in]...additional arguments
Returns
0 for success, -1 for error

Definition at line 75 of file ni_rsrc_list.c.