From: David B. <db...@si...> - 2006-08-10 13:59:03
|
> I think that bconsole must use this new API to. (if we want to avoid > duplicate code) Makes good sense to me.=20 > We could start to define what we want, ie input/output with comments and > examples, > // get media list with options > list_media(media*, pool*, location*, status*) >=20 > ex: > list_media media=3D"xxxx" media=3D"yyyy" > volumename=3D"xxxx" pool=3D"yyy" location=3D"zzz" status=3D"Full" .... > volumename=3D"yyyyy" pool=3D"yyy" location=3D"zzz" status=3D"Full" = .... Suggestion: define numbered messages and then just send the message number and the parameters to be substituted, eg the list media response as msg 003: 003 "xxx" "yyy" "zzz" "Full" 003 "yyyyy" "yyy" "zzz" "Full" That way the client can present them in whatever way makes sense (language, formatting, etc), and we all can agree on context for a specific message.=20 |