php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
readcdf.c File Reference
#include "file.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <ctype.h>
#include "cdf.h"
#include "magic.h"

Go to the source code of this file.

Data Structures

struct  nv
 
struct  cv
 
struct  sinfo
 

Macros

#define NOTMIME(ms)
 
#define HWP5_SIGNATURE   "HWP Document File"
 

Functions

file_private const char * cdf_clsid_to_mime (const uint64_t clsid[2], const struct cv *cv)
 
file_private const char * cdf_app_to_mime (const char *vbuf, const struct nv *nv)
 
file_private int cdf_file_property_info (struct magic_set *ms, const cdf_property_info_t *info, size_t count, const cdf_directory_t *root_storage)
 
file_private int cdf_file_catalog (struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst)
 
file_private int cdf_file_summary_info (struct magic_set *ms, const cdf_header_t *h, const cdf_stream_t *sst, const cdf_directory_t *root_storage)
 
file_private int cdf_file_catalog_info (struct magic_set *ms, const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn)
 
file_private int cdf_check_summary_info (struct magic_set *ms, const cdf_info_t *info, const cdf_header_t *h, const cdf_sat_t *sat, const cdf_sat_t *ssat, const cdf_stream_t *sst, const cdf_dir_t *dir, cdf_stream_t *scn, const cdf_directory_t *root_storage, const char **expn)
 
file_private int cdf_file_dir_info (struct magic_set *ms, const cdf_dir_t *dir)
 
file_protected int file_trycdf (struct magic_set *ms, const struct buffer *b)
 

Variables

file_private struct sinfo sectioninfo []
 

Macro Definition Documentation

◆ HWP5_SIGNATURE

#define HWP5_SIGNATURE   "HWP Document File"

◆ NOTMIME

#define NOTMIME ( ms)
Value:
(((ms)->flags & MAGIC_MIME) == 0)
#define MAGIC_MIME
Definition magic.h:44

Definition at line 44 of file readcdf.c.

Function Documentation

◆ cdf_app_to_mime()

file_private const char * cdf_app_to_mime ( const char * vbuf,
const struct nv * nv )

Definition at line 109 of file readcdf.c.

◆ cdf_check_summary_info()

file_private int cdf_check_summary_info ( struct magic_set * ms,
const cdf_info_t * info,
const cdf_header_t * h,
const cdf_sat_t * sat,
const cdf_sat_t * ssat,
const cdf_stream_t * sst,
const cdf_dir_t * dir,
cdf_stream_t * scn,
const cdf_directory_t * root_storage,
const char ** expn )

Definition at line 376 of file readcdf.c.

◆ cdf_clsid_to_mime()

file_private const char * cdf_clsid_to_mime ( const uint64_t clsid[2],
const struct cv * cv )

Definition at line 98 of file readcdf.c.

◆ cdf_file_catalog()

file_private int cdf_file_catalog ( struct magic_set * ms,
const cdf_header_t * h,
const cdf_stream_t * sst )

Definition at line 255 of file readcdf.c.

◆ cdf_file_catalog_info()

file_private int cdf_file_catalog_info ( struct magic_set * ms,
const cdf_info_t * info,
const cdf_header_t * h,
const cdf_sat_t * sat,
const cdf_sat_t * ssat,
const cdf_stream_t * sst,
const cdf_dir_t * dir,
cdf_stream_t * scn )

Definition at line 358 of file readcdf.c.

◆ cdf_file_dir_info()

file_private int cdf_file_dir_info ( struct magic_set * ms,
const cdf_dir_t * dir )

Definition at line 501 of file readcdf.c.

◆ cdf_file_property_info()

file_private int cdf_file_property_info ( struct magic_set * ms,
const cdf_property_info_t * info,
size_t count,
const cdf_directory_t * root_storage )

Definition at line 135 of file readcdf.c.

◆ cdf_file_summary_info()

file_private int cdf_file_summary_info ( struct magic_set * ms,
const cdf_header_t * h,
const cdf_stream_t * sst,
const cdf_directory_t * root_storage )

Definition at line 286 of file readcdf.c.

◆ file_trycdf()

file_protected int file_trycdf ( struct magic_set * ms,
const struct buffer * b )

Definition at line 530 of file readcdf.c.

Variable Documentation

◆ sectioninfo

file_private struct sinfo sectioninfo[]