Dt/Dts.h(5)

NAME
Dt/Dts.h - data typing definitions

SYNOPSIS
#include <Dt/Dts.h>

DESCRIPTION
The <Dt/Dts.h> header declares the following structure:

    typedef struct  _DtDtsAttribute {
    	char    *name;
    	char    *value;
    } DtDtsAttribute;

The header declares the following as functions:

DtDtsAttribute **DtDtsBufferToAttributeList(const void *buffer,
	const int size,
	const char *opt_name);

char *DtDtsBufferToAttributeValue(const void *buffer,
	const int size,
	const char *attr_name,
	const char *opt_name);

char *DtDtsBufferToDataType(const void *buffer,
	const int size,
	const char *opt_name);

char *DtDtsDataToDataType(const char *filepath,
	const void *buffer,
	const int size,
	const struct stat *stat_buff,
	const char *link_path,
	const struct stat *link_stat_buff,
	const char *opt_name);

int DtDtsDataTypeIsAction(const char *datatype);

char **DtDtsDataTypeNames(void);

DtDtsAttribute **DtDtsDataTypeToAttributeList(const char *datatype,
	const char *opt_name);

char *DtDtsDataTypeToAttributeValue(const char *datatype,
	const char *attr_name,
	const char *opt_name);

DtDtsAttribute **DtDtsFileToAttributeList(const char *filepath);

char *DtDtsFileToAttributeValue(const char *filepath,
	const char *attr_name);

char *DtDtsFileToDataType(const char *filepath);

char **DtDtsFindAttribute(const char *attr_name,
	const char *attr_value);

void DtDtsFreeAttributeList(DtDtsAttribute **attr_list);

void DtDtsFreeAttributeValue(char *attr_value);

void DtDtsFreeDataType(char *datatype);

void DtDtsFreeDataTypeNames(char **namelist);

void DtDtsLoadDataTypes(void);

void DtDtsRelease(void);

char *DtDtsSetDataType(const char *dirpath,
	const char *datatype,
	const int override);