search for: upscli_splithostname

Displaying 1 result from an estimated 1 matches for "upscli_splithostname".

2007 Jan 14
1
upscli_splitname() for upsc_list (was: Re: Default NUT PORT)
...able upsnames would be done like this: "upsc -l hostname[:port]". In order to reuse the upscli_splitname() code, I was thinking that I could modify it to simply return NULL in *upsname if there is no '@' sign. The alternative would be to have a flag (also an API change) or create upscli_splithostname(). Since libupsclient isn't exactly ubiquitous, I would prefer changing the semantics of upscli_splitname() and fixing whereever it is called to check for a null upsname. Opinions or objections? -- - Charles Lepple