Removed some structures from Ethumb.h and put them in ethumb_private.h.

SVN revision: 40279
This commit is contained in:
Rafael Antognolli 2009-04-21 23:06:57 +00:00
parent 15276b648e
commit e4035bc52f
6 changed files with 53 additions and 45 deletions

View File

@ -25,6 +25,7 @@
#endif
#include <eina_safety_checks.h>
#include "Ethumb.h"
#include "ethumb_private.h"
#include "Ethumb_Plugin.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -69,50 +69,6 @@ typedef struct _Ethumb Ethumb;
typedef struct _Ethumb_File Ethumb_File;
typedef void (*ethumb_generate_callback_t)(Ethumb_File *ef, void *data);
struct _Ethumb_Frame
{
const char *file;
const char *group;
const char *swallow;
Evas_Object *edje;
};
struct _Ethumb
{
const char *thumb_dir;
const char *category;
int tw, th;
int format;
int aspect;
float crop_x, crop_y;
struct
{
double time;
} video;
struct
{
int page;
} document;
Ethumb_Frame *frame;
Ecore_Evas *ee, *sub_ee;
Evas *e, *sub_e;
Evas_Object *o, *img;
Ecore_Idler *finished_idler;
ethumb_generate_callback_t finished_cb;
void *cb_data;
};
struct _Ethumb_File
{
Ethumb *ethumb;
const char *src_path;
const char *src_key;
const char *thumb_path;
const char *thumb_key;
int w, h;
};
EAPI int ethumb_init(void);
EAPI int ethumb_shutdown(void);

View File

@ -6,7 +6,7 @@ AM_CPPFLAGS = \
@EVAS_CFLAGS@ @ECORE_EVAS_CFLAGS@ @ECORE_FILE_CFLAGS@ @EDJE_CFLAGS@
include_HEADERS = Ethumb.h Ethumb_Plugin.h
noinst_HEADERS = md5.h
noinst_HEADERS = md5.h ethumb_private.h
lib_LTLIBRARIES = libethumb.la

View File

@ -0,0 +1,49 @@
#ifndef __ETHUMB_PRIVATE_H__
#define __ETHUMB_PRIVATE_H__ 1
#include <Ethumb.h>
struct _Ethumb_Frame
{
const char *file;
const char *group;
const char *swallow;
Evas_Object *edje;
};
struct _Ethumb
{
const char *thumb_dir;
const char *category;
int tw, th;
int format;
int aspect;
float crop_x, crop_y;
struct
{
double time;
} video;
struct
{
int page;
} document;
Ethumb_Frame *frame;
Ecore_Evas *ee, *sub_ee;
Evas *e, *sub_e;
Evas_Object *o, *img;
Ecore_Idler *finished_idler;
ethumb_generate_callback_t finished_cb;
void *cb_data;
};
struct _Ethumb_File
{
Ethumb *ethumb;
const char *src_path;
const char *src_key;
const char *thumb_path;
const char *thumb_key;
int w, h;
};
#endif /* __ETHUMB_PRIVATE_H__ */

View File

@ -1,4 +1,5 @@
#include "Ethumb.h"
#include "ethumb_private.h"
#include "Ethumb_Plugin.h"
#include "config.h"

View File

@ -1,4 +1,5 @@
#include "Ethumb.h"
#include "ethumb_private.h"
#include "Ethumb_Plugin.h"
#include "config.h"