Added LASH_No_Start_Server option and exported lash_args_destroy to API so
clients don't have to leak memory every lash_extract_args git-svn-id: svn://svn.savannah.nongnu.org/lash/trunk@36 1de19dc7-4e3f-0410-a61d-eddf686bf0b7
This commit is contained in:
parent
2d808f3531
commit
0db0243105
|
@ -524,6 +524,8 @@ This flag is set by the @command{--lash-no-autoresume} command line option and
|
|||
should not normally be set by clients themselves.
|
||||
@item LASH_Terminal
|
||||
The client is dependant on being run in a terminal.
|
||||
@item LASH_No_Start_Server
|
||||
Do not attempt to start LASH server.
|
||||
@end table
|
||||
|
||||
The @var{protocol} argument should be the version of the high-level protocol that the client
|
||||
|
@ -534,7 +536,7 @@ variable.
|
|||
|
||||
@deftypefun {lash_args_t *} lash_extract_args (int * @var{argc}, char *** @var{argv})
|
||||
Extract LASH-specific arguments from argc/argv for use in @code{lash_init}. This should be done before the
|
||||
client checks the arguments, obviously.
|
||||
client checks the arguments, obviously. Returned object must be cleaned up with lash_args_destroy.
|
||||
@end deftypefun
|
||||
|
||||
@deftypefun {const char *} lash_get_server_name (lash_client_t * @var{client})
|
||||
|
|
|
@ -35,6 +35,10 @@ extern "C" {
|
|||
*/
|
||||
lash_args_t * lash_extract_args (int * argc, char *** argv);
|
||||
|
||||
/** Destroy a lash_args_t (returned from lash_extract_args).
|
||||
*/
|
||||
void lash_args_destroy (lash_args_t* args);
|
||||
|
||||
/** open a connection to the server
|
||||
* returns NULL on failure
|
||||
*/
|
||||
|
|
|
@ -35,9 +35,12 @@ enum LASH_Client_Flag
|
|||
|
||||
LASH_Server_Interface = 0x00000004, /* is a server interface */
|
||||
LASH_No_Autoresume = 0x00000008, /* server shouldn't try to resume a lost client with this one */
|
||||
LASH_Terminal = 0x00000010 /* runs in a terminal */
|
||||
LASH_Terminal = 0x00000010, /* runs in a terminal */
|
||||
|
||||
LASH_No_Start_Server = 0x00000020 /* do not attempt to automatically start server */
|
||||
};
|
||||
|
||||
|
||||
enum LASH_Event_Type
|
||||
{
|
||||
/* for normal clients */
|
||||
|
|
Loading…
Reference in New Issue