20 lines
479 B
C
20 lines
479 B
C
#include <glib.h>
|
|
#include <libgnomevfs/gnome-vfs.h>
|
|
#include "../gm-editor.h"
|
|
#include "../gm-world.h"
|
|
|
|
#define GM_EXTERNAL_VIEW(obj) (GmExternalView *)(obj)
|
|
|
|
typedef struct _GmExternalView {
|
|
GmWorld *world;
|
|
GmEditor *editor;
|
|
|
|
gchar *filename;
|
|
GnomeVFSMonitorHandle *monitor;
|
|
time_t last_modified;
|
|
GPid pid;
|
|
guint child_watch;
|
|
} GmExternalView;
|
|
|
|
GmExternalView *gm_external_view_new(GmWorld *world, GmEditor *editor);
|
|
void gm_external_view_destroy(GmExternalView *view);
|