| version 1.2, 2003/04/22 14:19:52 |
version 1.3, 2003/04/23 23:05:18 |
|
|
| * |
* |
| * @file platon/dsn/dsn.h |
* @file platon/dsn/dsn.h |
| * @author Peter Rockai <yenar@platon.sk> |
* @author Peter Rockai <yenar@platon.sk> |
| * @version \$Platon: libplaton/platon/dsn/dsn.h,v 1.1 2003/04/21 23:50:20 nepto Exp $ |
* @version \$Platon: libplaton/platon/dsn/dsn.h,v 1.2 2003/04/22 14:19:52 nepto Exp $ |
| * @date 2003 |
* @date 2003 |
| |
|
| Data source name (DSN) is URL-like string used for uniquely defining data |
Data source name (DSN) is URL-like string used for uniquely defining data |
|
|
| * |
* |
| * @struct dsn_elements <platon/dsn/dsn.h> |
* @struct dsn_elements <platon/dsn/dsn.h> |
| * @author Ondrej Jombik <nepto@platon.sk> |
* @author Ondrej Jombik <nepto@platon.sk> |
| * @version \$Platon: libplaton/platon/net/Connection.h,v 1.13 2002/12/07 15:36:32 rajo Exp $ |
* @version \$Platon: libplaton/platon/dsn/dsn.h,v 1.2 2003/04/22 14:19:52 nepto Exp $ |
| * @date 2002-2003 |
* @date 2002-2003 |
| */ |
*/ |
| struct dsn_elements |
struct dsn_elements |
|
|
| void dsn_free(struct dsn_elements *el); |
void dsn_free(struct dsn_elements *el); |
| |
|
| /** |
/** |
| |
* Compiles DSN string according to dsn_elements |
| |
* |
| |
* @param el pointer to dsn_elements structure |
| |
* @return allocated DSN string or NULL on memory allocation failure |
| |
* @author Ondrej Jombik <nepto@platon.sk> |
| |
* |
| |
* Note that this method is called dsn_glue() for compatibility with |
| |
* glueDSN() method in PEAR repostiry (see PDBPLUS application). More |
| |
* appropriate name would be dsn_compile() or something like this. |
| |
*/ |
| |
char *dsn_glue(const struct dsn_elements *el); |
| |
|
| |
/** |
| * Parses DSN string into dsn_elements structure |
* Parses DSN string into dsn_elements structure |
| * |
* |
| * @param input_dsn data source name (DSN) string |
* @param input_dsn data source name (DSN) string |