[PATCH V2 0/4] Add ui and functions to send url to server

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Thu Jul 24 15:05:35 EST 2014


These patches create a 'url-add' action, accessible through pb-event
and as a pb_protocol message in the ncurses ui.
The action allows a petitboot conf file to be accessed and parsed
from a valid remote url.

Changes in v2:
- Patches reorganised into more discrete parts
- Rename action to 'url-add' instead of 'retrieve'
- Make function names more consistent
- Remove unneeded functionality from ncurses screen
- Create new 'url-add' action instead of modifying 'conf' action
- Remove unneeded check prior to pb_url_parse (assert only triggers
	with --enable-debug)
- Streamline discover_client_send_url slightly

Samuel Mendoza-Jonas (4):
  discover: Enable 'url' pb-events
  lib/pb-protocol: Define new 'add-url' action
  discover: Add support for 'add-url' actions
  ui/ncurses: Add support for 'add-url' action

 discover/device-handler.c     | 130 ++++++++++++++++++++++
 discover/device-handler.h     |   2 +
 discover/discover-server.c    |   7 ++
 discover/event.c              |   2 +
 discover/event.h              |   1 +
 discover/user-event.c         |  17 +++
 lib/pb-protocol/pb-protocol.c |  18 +++
 lib/pb-protocol/pb-protocol.h |   3 +
 ui/common/discover-client.c   |  18 +++
 ui/common/discover-client.h   |   4 +
 ui/ncurses/Makefile.am        |   5 +-
 ui/ncurses/generic-main.c     |  14 ++-
 ui/ncurses/nc-add-url-help.c  |   5 +
 ui/ncurses/nc-add-url.c       | 247 ++++++++++++++++++++++++++++++++++++++++++
 ui/ncurses/nc-add-url.h       |  31 ++++++
 ui/ncurses/nc-cui.c           |  19 ++++
 ui/ncurses/nc-cui.h           |   3 +
 ui/ncurses/nc-scr.h           |   3 +-
 18 files changed, 525 insertions(+), 4 deletions(-)
 create mode 100644 ui/ncurses/nc-add-url-help.c
 create mode 100644 ui/ncurses/nc-add-url.c
 create mode 100644 ui/ncurses/nc-add-url.h

-- 
1.9.3



More information about the Petitboot mailing list