Download

Support

/build/buildd/efreet-0.5.0.063/src/lib/efreet_mime.c File Reference

#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <unistd.h>
#include <time.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <Ecore.h>
#include <Ecore_File.h>
#include <Efreet.h>
#include <Efreet_Mime.h>
#include "efreet_private.h"
Include dependency graph for efreet_mime.c:

Data Structures

struct  Efreet_Mime_Glob
struct  Efreet_Mime_Icon_Entry
struct  Efreet_Mime_Icon_Entry_Head
struct  Efreet_Mime_Magic
struct  Efreet_Mime_Magic_Entry

Defines

#define EFREET_MIME_ICONS_EXPIRE_TIMEOUT   600
#define EFREET_MIME_ICONS_FLUSH_TIMEOUT   60
#define EFREET_MIME_ICONS_MAX_POPULATION   512
#define EFREET_MIME_MAGIC_BUFFER_SIZE   512
#define EFREET_MODULE_LOG_DOM   _efreet_mime_log_dom

Typedefs

typedef struct Efreet_Mime_Glob Efreet_Mime_Glob
 A parsed representation of a globs file.
typedef struct
Efreet_Mime_Icon_Entry 
Efreet_Mime_Icon_Entry
typedef struct
Efreet_Mime_Icon_Entry_Head 
Efreet_Mime_Icon_Entry_Head
typedef struct Efreet_Mime_Magic Efreet_Mime_Magic
 A parsed representation of a magic file section.
typedef struct
Efreet_Mime_Magic_Entry 
Efreet_Mime_Magic_Entry
 A parsed representation of a magic file entry.

Enumerations

enum  { EFREET_ENDIAN_BIG = 0, EFREET_ENDIAN_LITTLE = 1 }

Functions

void * alloca (size_t)
EAPI const char * efreet_mime_fallback_type_get (const char *file)
 Retreive the fallback mime type of a file.
EAPI const char * efreet_mime_globs_type_get (const char *file)
 Retreive the mime type of a file using globs.
EAPI int efreet_mime_init (void)
 Initializes the efreet mime settings.
EAPI const char * efreet_mime_magic_type_get (const char *file)
 Retreive the mime type of a file using magic.
EAPI int efreet_mime_shutdown (void)
 Cleans up the efreet mime settings system.
EAPI const char * efreet_mime_special_type_get (const char *file)
 Retreive the special mime type of a file.
EAPI void efreet_mime_type_cache_clear (void)
EAPI void efreet_mime_type_cache_flush (void)
EAPI const char * efreet_mime_type_get (const char *file)
 Retreive the mime type of a file.
EAPI char * efreet_mime_type_icon_get (const char *mime, const char *theme, unsigned int size)
 Retreive the mime type icon for a file.

Define Documentation

#define EFREET_MIME_ICONS_EXPIRE_TIMEOUT   600
#define EFREET_MIME_ICONS_FLUSH_TIMEOUT   60
#define EFREET_MIME_ICONS_MAX_POPULATION   512
#define EFREET_MIME_MAGIC_BUFFER_SIZE   512
#define EFREET_MODULE_LOG_DOM   _efreet_mime_log_dom

Typedef Documentation

A parsed representation of a globs file.

Efreet_Mime_Glob

A parsed representation of a magic file section.

Efreet_Mime_Magic

A parsed representation of a magic file entry.

Efreet_Mime_Magic_Entry


Enumeration Type Documentation

anonymous enum
Enumerator:
EFREET_ENDIAN_BIG 
EFREET_ENDIAN_LITTLE 

Function Documentation

void* alloca ( size_t   ) 

Copyright © Enlightenment.org

Efreet Documentation Generated: Tue Dec 22 16:13:52 2009