#ifndef ANVIL_CLIENT_H
#define ANVIL_CLIENT_H
enum anvil_client_flags {
/* if connect() fails with ENOENT, hide the error */
};
/* reply=NULL if query failed */
/* If reconnect_callback is specified, it's called when connection is lost.
If the callback returns FALSE, reconnection isn't attempted. */
struct anvil_client *
/* Connect to anvil. If retry=TRUE, try connecting for a while */
/* Send a query to anvil, expect a one line reply. The returned pointer can be
used to abort the query later. It becomes invalid when callback is
called (= the callback must not call it). Returns NULL if the query couldn't
be sent. */
struct anvil_query *
struct anvil_query **query);
/* Send a command to anvil, don't expect any replies. */
/* Returns TRUE if anvil is connected to. */
#endif