db_join.h
Go to the documentation of this file.
/*
* Copyright (c) 2014 Jerry Lundström <lundstrom.jerry@gmail.com>
* Copyright (c) 2014 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2014 OpenDNSSEC AB (svb)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef __db_join_h
#define __db_join_h
struct db_join;
struct db_join_list;
typedef struct db_join db_join_t;
typedef struct db_join_list db_join_list_t;
#include "db_type.h"
struct db_join {
db_join_t* next;
char* from_table;
char* from_field;
char* to_table;
char* to_field;
};
extern const char* db_join_from_table(const db_join_t* join);
extern const char* db_join_from_field(const db_join_t* join);
extern const char* db_join_to_table(const db_join_t* join);
extern const char* db_join_to_field(const db_join_t* join);
extern const db_join_t* db_join_next(const db_join_t* join);
struct db_join_list {
db_join_t* begin;
db_join_t* end;
};
extern const db_join_t* db_join_list_begin(const db_join_list_t* join_list);
#endif
db_join_from_table
const char * db_join_from_table(const db_join_t *join)
Definition db_join.c:41
db_join_from_field
const char * db_join_from_field(const db_join_t *join)
Definition db_join.c:49
db_join_list_begin
const db_join_t * db_join_list_begin(const db_join_list_t *join_list)
Definition db_join.c:85
db_join_to_table
const char * db_join_to_table(const db_join_t *join)
Definition db_join.c:57
db_join_next
const db_join_t * db_join_next(const db_join_t *join)
Definition db_join.c:73
db_join_to_field
const char * db_join_to_field(const db_join_t *join)
Definition db_join.c:65
db_type.h
db_join_list
Definition db_join.h:94
db_join_list::begin
db_join_t * begin
Definition db_join.h:95
db_join_list::end
db_join_t * end
Definition db_join.h:96
db_join
Definition db_join.h:43
db_join::from_table
char * from_table
Definition db_join.h:45
db_join::next
db_join_t * next
Definition db_join.h:44
db_join::from_field
char * from_field
Definition db_join.h:46
db_join::to_field
char * to_field
Definition db_join.h:48
db_join::to_table
char * to_table
Definition db_join.h:47