Skip to content
Authors

File prod_range.h

File List > prod_range > src > prod_range.h

Go to the documentation of this file

#ifndef PROD_RANGE_H
#define PROD_RANGE_H

/*************************************************************************************************/
/*************************** Includes ************************************************************/
/*************************************************************************************************/

#include <stddef.h>

/*************************************************************************************************/
/*************************** Defines *************************************************************/
/*************************************************************************************************/

#define PROD_RANGE_NAME    ("range")

/*************************************************************************************************/
/*************************** Typedefs ************************************************************/
/*************************************************************************************************/

#ifdef __cplusplus
extern "C"
{
#endif

typedef struct {
    int    lower_bound; 
    int    upper_bound; 
    char * out_str;     
    size_t out_str_len; 
} prod_range_config_t;


#ifdef __cplusplus
}
#endif
/*************************************************************************************************/
/*************************** Public Function Declarations ****************************************/
/*************************************************************************************************/

#ifdef __cplusplus
extern "C"
{
#endif


const char * prod_range_resolve(const void *config);

const char * prod_range_terminate(const void *config);

#ifdef __cplusplus
}
#endif


#endif /* end PROD_RANGE_H */