Sukrit Bhatnagar
094c9e811f
util: usb: define cleanup function using VIR_DEFINE_AUTOPTR_FUNC
...
Using the new VIR_DEFINE_AUTOPTR_FUNC macro defined in
src/util/viralloc.h, define a new wrapper around an existing
cleanup function which will be called when a variable declared
with VIR_AUTOPTR macro goes out of scope. Also, drop the redundant
viralloc.h include, since that has moved from the source module into
the header.
When a variable of type virUSBDevicePtr is declared using
VIR_AUTOPTR, the function virUSBDeviceFree will be run
automatically on it when it goes out of scope.
Signed-off-by: Sukrit Bhatnagar <skrtbhtngr@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2018-07-27 17:21:15 +02:00
..
2018-07-14 17:01:30 +02:00
2018-07-18 17:54:18 +02:00
2017-02-23 10:11:16 +00:00
2018-07-14 17:01:30 +02:00
2018-07-14 17:01:30 +02:00
2018-03-15 14:59:12 +01:00
2017-11-03 13:24:12 +01:00
2018-07-14 17:01:30 +02:00
2017-12-13 13:42:16 +01:00
2018-07-14 17:01:30 +02:00
2018-07-14 17:01:30 +02:00
2018-07-14 17:01:30 +02:00
2018-07-14 17:01:30 +02:00
2018-07-14 17:01:30 +02:00
2018-07-27 17:19:15 +02:00
2018-07-27 17:19:13 +02:00
2018-07-27 17:19:22 +02:00
2018-07-27 17:19:18 +02:00
2018-07-27 17:19:18 +02:00
2018-04-23 06:41:45 -04:00
2018-04-09 18:26:03 -04:00
2018-07-25 07:11:13 +02:00
2018-07-14 17:01:30 +02:00
2018-02-21 16:53:44 +00:00
2017-10-18 13:25:10 +02:00
2018-06-05 14:32:36 +02:00
2018-06-05 10:31:19 +02:00
2017-11-03 13:24:12 +01:00
2018-07-13 16:01:05 +02:00
2018-04-05 09:58:44 +02:00
2018-04-18 10:04:55 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2018-07-27 17:19:06 +02:00
2018-07-27 17:19:06 +02:00
2017-10-20 15:15:35 +02:00
2018-07-14 17:01:30 +02:00
2017-01-25 09:18:49 +01:00
2018-07-14 17:01:30 +02:00
2017-05-26 10:44:05 -04:00
2018-07-23 14:27:30 +02:00
2017-05-18 07:42:13 +02:00
2018-07-14 20:38:56 +04:00
2018-07-14 17:01:30 +02:00
2018-07-14 17:01:30 +02:00
2017-07-26 15:31:25 +02:00
2018-07-27 17:21:08 +02:00
2018-07-27 17:21:04 +02:00
2016-11-25 13:54:05 +01:00
2018-04-19 10:35:58 +01:00
2017-05-16 16:48:30 +02:00
2018-07-27 17:19:16 +02:00
2018-07-27 17:19:16 +02:00
2017-06-12 19:11:30 -04:00
2017-08-03 09:49:15 +02:00
2018-07-27 17:21:11 +02:00
2018-04-01 17:42:29 +02:00
2018-07-23 14:27:30 +02:00
2018-01-04 16:52:03 +01:00
2017-03-27 13:13:29 +02:00
2018-07-27 17:21:14 +02:00
2018-05-14 12:12:06 -04:00
2018-07-23 14:27:30 +02:00
2018-07-14 17:01:30 +02:00
2018-07-25 13:23:10 +02:00
2018-07-25 07:11:13 +02:00
2018-07-18 17:54:18 +02:00
2018-07-18 17:54:18 +02:00
2018-03-12 16:30:49 +01:00
2018-05-10 14:59:15 -04:00
2018-07-23 14:27:30 +02:00
2018-05-11 17:06:55 +01:00
2018-02-19 13:15:00 -05:00
2018-02-19 13:15:00 -05:00
2018-07-27 15:47:45 +02:00
2017-08-16 14:17:57 -04:00
2018-07-27 17:19:25 +02:00
2018-07-27 17:19:23 +02:00
2018-07-15 12:09:09 +02:00
2018-05-03 12:47:43 +01:00
2018-07-23 14:27:30 +02:00
2017-09-18 08:32:24 -04:00
2017-10-05 09:16:05 +02:00
2017-10-05 09:16:05 +02:00
2018-07-23 14:27:30 +02:00
2017-04-26 18:59:24 +02:00
2017-07-13 13:07:06 +01:00
2017-08-11 19:09:49 -04:00
2017-04-28 09:43:52 -04:00
2018-07-02 18:06:53 -04:00
2018-07-02 18:06:53 -04:00
2018-07-23 14:27:30 +02:00
2018-07-16 06:57:25 -04:00
2018-07-23 14:27:30 +02:00
2018-02-21 16:53:44 +00:00
2018-03-19 10:47:08 +01:00
2018-03-15 11:22:42 +01:00
2017-03-27 13:13:29 +02:00
2017-03-27 13:13:29 +02:00
2018-04-24 11:02:28 +02:00
2018-04-24 11:02:28 +02:00
2018-05-15 18:43:01 +01:00
2018-04-18 10:04:55 +02:00
2018-07-27 17:21:13 +02:00
2018-07-27 17:21:11 +02:00
2017-05-04 16:42:25 +02:00
2017-03-07 13:51:05 -05:00
2018-07-04 08:10:53 +02:00
2018-03-14 12:46:26 +01:00
2018-06-14 09:52:21 +02:00
2018-02-22 13:52:45 +01:00
2018-01-03 15:21:06 +01:00
2018-06-26 08:05:57 +02:00
2017-01-11 18:02:35 +01:00
2018-06-26 14:02:43 -04:00
2018-06-05 08:13:59 +02:00
2018-06-05 10:31:19 +02:00
2017-07-13 13:07:06 +01:00
2018-06-08 10:28:46 +02:00
2018-06-08 10:28:46 +02:00
2018-01-25 17:16:08 +01:00
2017-09-25 13:34:53 +01:00
2018-04-18 10:04:55 +02:00
2017-07-13 13:07:06 +01:00
2017-02-19 06:45:09 -05:00
2017-02-19 06:45:09 -05:00
2018-04-18 10:04:55 +02:00
2017-07-13 13:07:06 +01:00
2017-09-21 15:46:48 -04:00
2017-09-21 15:46:48 -04:00
2018-04-05 14:57:16 -06:00
2018-04-05 14:50:15 -06:00
2018-03-08 14:29:50 +01:00
2018-03-08 14:29:50 +01:00
2018-07-20 15:41:38 +02:00
2018-07-20 15:41:38 +02:00
2018-05-03 15:42:59 +01:00
2018-05-03 13:17:59 +01:00
2018-07-27 15:47:45 +02:00
2018-07-27 15:47:45 +02:00
2018-03-14 17:43:40 +01:00
2018-02-17 07:36:46 -05:00
2017-03-07 10:44:26 +01:00
2017-11-03 13:24:12 +01:00
2017-07-25 17:02:27 +02:00
2017-03-06 15:44:33 +01:00
2017-12-05 11:28:19 +01:00
2017-11-03 13:24:12 +01:00
2018-07-21 07:46:45 -04:00
2017-03-16 09:21:39 +01:00
2017-09-07 14:00:46 +02:00
2017-07-13 13:07:06 +01:00
2018-07-23 14:28:58 -04:00
2017-11-03 13:24:12 +01:00
2016-11-25 13:54:05 +01:00
2017-07-24 10:55:43 +02:00
2018-07-27 17:21:15 +02:00
2018-07-27 17:21:15 +02:00
2018-06-05 08:33:13 +02:00
2018-06-05 08:33:13 +02:00
2018-06-05 10:31:19 +02:00
2017-11-03 13:24:12 +01:00
2017-02-19 15:47:27 +01:00
2017-02-19 06:45:09 -05:00
2018-05-29 15:42:03 +02:00
2018-05-29 15:42:03 +02:00
2018-06-05 18:44:05 +02:00
2017-11-03 13:24:12 +01:00