optionhandler.h

Includes

#include "azure_macro_utils/macro_utils.h"
#include "umock_c/umock_c_prod.h"

Detailed Description

Functions

Function Name Description
OPTIONHANDLER_RESULTStrings
OPTIONHANDLER_RESULT_FromString
OptionHandler_Create
OptionHandler_Clone
OptionHandler_AddOption
OptionHandler_FeedOptions
OptionHandler_Destroy

Macro definitions

OPTIONHANDLER_RESULT_VALUES

#define OPTIONHANDLER_RESULT_VALUES \
        OPTIONHANDLER_OK, \
        OPTIONHANDLER_ERROR, \
        OPTIONHANDLER_INVALIDARG 

Enumeration types

OPTIONHANDLER_RESULT

enum OPTIONHANDLER_RESULT {
  OPTIONHANDLER_OK,
  OPTIONHANDLER_ERROR,
  OPTIONHANDLER_INVALIDARG
}

Type definitions

OPTIONHANDLER_HANDLE

typedef struct OPTIONHANDLER_HANDLE_DATA_TAG* OPTIONHANDLER_HANDLE;

pfCloneOption

typedef void*(* pfCloneOption) (
  const char *  name,
  const void *  value
);

pfDestroyOption

typedef void(* pfDestroyOption) (
  const char *  name,
  const void *  value
);

pfSetOption

typedef int(* pfSetOption) (
  void *        handle,
  const char *  name,
  const void *  value
);