From 3944b57c90f3613b0c7363d01955274883354d3e Mon Sep 17 00:00:00 2001 From: Stephane Bortzmeyer Date: Tue, 25 May 2004 13:44:54 +0000 Subject: [PATCH] Two start() routines? --- SRC/PLUGINS | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SRC/PLUGINS b/SRC/PLUGINS index bf14200..29787af 100644 --- a/SRC/PLUGINS +++ b/SRC/PLUGINS @@ -4,12 +4,16 @@ functions: char * init (const int argc, const char **argv) Accepts remaining arguments (you have to use popt to parse them, or do it by hand, getopt does not allow you to resume the parsing) and -returns a string identifying the port name. If it makes no sens, you +returns a string identifying the port name. If it makes no sense, you can safely return NULL. void start (struct addrinfo *res) Typically just stores the res structure for later use. +TODO: two start() routines, one which takes a struct addrinfo and one +which does not (PostgreSQL or MySQL does not use struct addrinfo but a +string)? + int execute () Connects and do whatever the protocol requires. It is called once per iteration. It returns >=0 if it succeeds and -1 if it failed.