libextractor  1.11
About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.
  Fossies Dox: libextractor-1.11.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

xm_extractor.c File Reference

plugin to support Impulse Tracker (IT) files More...

#include "platform.h"
#include "extractor.h"
Include dependency graph for xm_extractor.c:

Go to the source code of this file.

Data Structures

struct  Header
 

Macros

#define ADD(s, t)
 

Functions

void EXTRACTOR_xm_extract_method (struct EXTRACTOR_ExtractContext *ec)
 

Detailed Description

plugin to support Impulse Tracker (IT) files

plugin to support XM files

Author
Toni Ruottu
Christian Grothoff

Definition in file xm_extractor.c.

Macro Definition Documentation

◆ ADD

#define ADD (   s,
 
)
Value:
do { if (0 != ec->proc (ec->cls, "xm", t, \
"text/plain", s, strlen (s) \
+ 1)) return; \
} while (0)
@ EXTRACTOR_METAFORMAT_UTF8
Definition: extractor.h:102

Give meta data to LE.

Parameters
sutf-8 string meta data value
ttype of the meta data

Definition at line 50 of file xm_extractor.c.

Function Documentation

◆ EXTRACTOR_xm_extract_method()

void EXTRACTOR_xm_extract_method ( struct EXTRACTOR_ExtractContext ec)

"extract" metadata from an Extended Module

The XM module format description for XM files version $0104 that was written by Mr.H of Triton in 1994 was used, while this piece of software was originally written.

Parameters
ecextraction context

Definition at line 68 of file xm_extractor.c.

References ADD, EXTRACTOR_ExtractContext::cls, EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, EXTRACTOR_METATYPE_FORMAT_VERSION, EXTRACTOR_METATYPE_MIMETYPE, EXTRACTOR_METATYPE_TITLE, Header::magicid, EXTRACTOR_ExtractContext::read, Header::title, Header::tracker, and Header::version.