~linuxjedi/drizzle/elliott-bug-653300

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/database_xt.cc

  • Committer: lbieber
  • Date: 2010-09-26 03:23:39 UTC
  • mfrom: (1793.1.1 build)
  • Revision ID: lbieber@orisndriz08-20100926032339-59p5xxhkloa09759
Merge Monty - Beginning of catalog support, adds a default local catalog. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 * LOCK/UNLOCK INSTALLATION
91
91
 */
92
92
 
93
 
xtPublic void xt_lock_installation(XTThreadPtr self, char *installation_path)
 
93
xtPublic void xt_lock_installation(XTThreadPtr self, const char *installation_path)
94
94
{
95
95
        char                    file_path[PATH_MAX];
96
96
        char                    buffer[101];
189
189
        cont_(a);
190
190
}
191
191
 
192
 
xtPublic void xt_unlock_installation(XTThreadPtr self, char *installation_path)
 
192
xtPublic void xt_unlock_installation(XTThreadPtr self, const char *installation_path)
193
193
{
194
194
        if (db_lock_file) {
195
195
                char lock_file[PATH_MAX];
451
451
 * Just the last component of the path (i.e. the database name) should be
452
452
 * sufficient!?
453
453
 */
454
 
xtPublic XTDatabaseHPtr xt_get_database(XTThreadPtr self, char *path, xtBool multi_path)
 
454
xtPublic XTDatabaseHPtr xt_get_database(XTThreadPtr self, const char *path, xtBool multi_path)
455
455
{
456
456
        XTDatabaseHPtr  db = NULL;
457
457
        char                    db_path[PATH_MAX];
649
649
/*
650
650
 * Open/use a database.
651
651
 */
652
 
xtPublic void xt_open_database(XTThreadPtr self, char *path, xtBool multi_path)
 
652
xtPublic void xt_open_database(XTThreadPtr self, const char *path, xtBool multi_path)
653
653
{
654
654
        XTDatabaseHPtr db;
655
655