2009-12-03 Jeffrey Stedfast <fejj@novell.com>
[moon.git] / src / openfile.h
blob1e3062d90d6780d94d3d705fc4967ebd8d8040dd
1 /*
2 * openfile.h: File open / save interfaces
4 * Contact:
5 * Moonlight List (moonlight-list@lists.ximian.com)
7 * Copyright 2007, 2009 Novell, Inc. (http://www.novell.com)
9 * See the LICENSE file included with the distribution for details.
13 #ifndef __OPENFILE_H__
14 #define __OPENFILE_H__
16 #include <stdlib.h>
17 #include <string.h>
18 #include <sys/stat.h>
20 #include <glib.h>
21 #include <glib/gstdio.h>
23 #include <gtk/gtk.h>
25 #include "runtime.h"
26 #include "deployment.h"
28 G_BEGIN_DECLS
30 #define MOONLIGHT_MINIMUM_FILE_ENTRY_COST 1024
31 #define MOONLIGHT_FILE_SIZE_MASK (MOONLIGHT_MINIMUM_FILE_ENTRY_COST - 1)
33 /* @GeneratePInvoke */
34 char **open_file_dialog_show (const char *title, bool multsel, const char *filter, int idx);
36 /* @GeneratePInvoke */
37 char *save_file_dialog_show (const char *title, const char *filter, int idx);
39 // NOTE: this is used from 'mscorlib.dll' System.IO.IsolatedStorage/MoonIsolatedStorageFile.cs
40 gboolean isolated_storage_increase_quota_to (const char *primary_text, const char* secondary_text);
42 // NOTE: this is used from 'mscorlib.dll' System.IO.IsolatedStorage/MoonIsolatedStorage.cs
43 long isolated_storage_get_current_usage (const char* root);
45 G_END_DECLS
47 #endif