openocd/src/target/openrisc
Tarek BOCHKATI 7e6556b3ca server: permit the add_service function to return the created service
returning the created service seems useful:

as the only method to get the freshly created service is by getting the
last item in the services linked list, and this seems to be like an
intrusion to service internal mechanism.

possibly, we could get the service from a connection but this is possible
only from [new_connection|input|connection_closed]_handler_t, but this is
not always practical:
  example: armv7m: add a TCP channel to stream captured trace
           http://openocd.zylin.com/#/c/5345/
           here we poll for trace and broadcast to all connections
           outside of these xxx_handler_t functions

also, storing one of the connections in new_connection_handler_t and get
the service from it is possible, but this will make the code less readable.

Change-Id: I5fef1baecec1e054953c6faf5b99d864ecc97f02
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5717
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
2020-11-07 20:49:53 +00:00
..
jsp_server.c server: permit the add_service function to return the created service 2020-11-07 20:49:53 +00:00
jsp_server.h server: free strduped port numbers 2018-03-15 17:08:53 +00:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
or1k_du_adv.c target: avoid checking for non NULL pointer to free it 2020-09-05 20:47:11 +01:00
or1k_du.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
or1k_tap_mohor.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
or1k_tap_vjtag.c target: use proper format with uint32_t 2020-09-05 17:12:39 +01:00
or1k_tap_xilinx_bscan.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
or1k_tap.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
or1k.c target: declare local symbols as static 2020-11-04 17:39:17 +00:00
or1k.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00