~drizzle-trunk/drizzle/development

390.1.2 by Monty Taylor
Fixed copyright headers in drizzled/
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2008 Sun Microsystems
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
1 by brian
clean slate
20
21
/*  Extra functions used by unireg library */
22
670.2.4 by Monty Taylor
Removed more stuff from the headers.
23
#ifndef DRIZZLED_UNIREG_H
24
#define DRIZZLED_UNIREG_H
25
26
#include <drizzled/structs.h>				/* All structs we need */
988.1.1 by Jay Pipes
Changes libserialize to libdrizzledmessage per ML discussion. All GPB messages are now in the drizzled::message namespace.
27
#include <drizzled/message/table.pb.h>
28
int drizzle_read_table_proto(const char* path, drizzled::message::Table* table);
896.4.9 by Stewart Smith
No longer write the FRM. just use proto.
29
int table_proto_exists(const char *path);
30
int copy_table_proto_file(const char *from, const char* to);
670.2.4 by Monty Taylor
Removed more stuff from the headers.
31
32
void unireg_end(void) __attribute__((noreturn));
33
void unireg_abort(int exit_code) __attribute__((noreturn));
34
35
int rea_create_table(Session *session, const char *path,
36
                     const char *db, const char *table_name,
1008.3.20 by Stewart Smith
Put table_name into table proto in parser, and use that when creating table proto file.
37
                     drizzled::message::Table *table_proto,
670.2.4 by Monty Taylor
Removed more stuff from the headers.
38
                     HA_CREATE_INFO *create_info,
39
                     List<Create_field> &create_field,
40
                     uint32_t key_count,KEY *key_info,
1008.3.23 by Stewart Smith
remove unused (originally only in ha_partition, but should really be part of ha_create there too) ha_create_handler_files
41
                     bool is_like);
670.2.4 by Monty Taylor
Removed more stuff from the headers.
42
43
1014.6.1 by Joe Daly
Merge duplication between unireg.h and definitions.h
44
#endif /* DRIZZLED_UNIREG_H */