~ubuntu-branches/ubuntu/lucid/m17n-lib/lucid

« back to all changes in this revision

Viewing changes to src/database.h

  • Committer: Bazaar Package Importer
  • Author(s): Harshula Jayasuriya
  • Date: 2008-06-23 23:02:47 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080623230247-7o0g4dmlvx1qoe0z
Tags: 1.5.1-1
* New upstream release 1.5.1. (Closes: #434041)
* debian/control: changed to Section: utils.
* debian/{copyright,rules}: updated.
* Updated to debhelper 7.
* Enable patch fix_loadable_modules_path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
   You should have received a copy of the GNU Lesser General Public
19
19
   License along with the m17n library; if not, write to the Free
20
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
20
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
21
   02111-1307, USA.  */
22
22
 
23
23
#ifndef _M17N_DATABASE_H_
37
37
 
38
38
enum MDatabaseStatus
39
39
  {
40
 
    /* The database was defined automatically (from mdb.dir file(s)).*/
 
40
    /* The database was defined automatically (from mdb.dir file(s))
 
41
       with no wildcard tag.  */
41
42
    MDB_STATUS_AUTO,
 
43
    /* The database was defined automatically (from mdb.dir file(s)).
 
44
       with a wildcard tag.  */
 
45
    MDB_STATUS_AUTO_WILDCARD,
42
46
    /* The database was defined explicitely (by mdatabase_define ()). */
43
47
    MDB_STATUS_EXPLICIT,
44
48
    /* The databse is currently disabled. (usually because it is
45
49
       deleted from mdb.dir file(s)).  */
46
 
    MDB_STATUS_DISABLED
 
50
    MDB_STATUS_DISABLED,
 
51
    MDB_STATUS_UPDATED,
 
52
    MDB_STATUS_OUTDATED
47
53
  };
48
54
 
49
55
typedef struct
60
66
     loaded.  */
61
67
  time_t time;
62
68
  char *lock_file, *uniq_file;
 
69
 
 
70
  MPlist *properties;
63
71
} MDatabaseInfo;
64
72
 
65
73
extern MPlist *mdatabase__dir_list;
80
88
 
81
89
extern int mdatabase__unlock (MDatabase *mdb);
82
90
 
 
91
extern MPlist *mdatabase__props (MDatabase *mdb);
 
92
 
 
93
extern void *(*mdatabase__load_charset_func) (FILE *fp, MSymbol charset_name);
 
94
 
83
95
#endif /* not _M17N_DATABASE_H_ */