[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] include/qemu: Add documentation to functions in
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] include/qemu: Add documentation to functions in include/qemu/id.h |
Date: |
Mon, 17 Oct 2016 10:28:46 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 16/10/2016 23:03, Veronia Bahaa wrote:
> Add documentation to the functions id_generate and id_wellformed in
> include/qemu/id.h
>
> Signed-off-by: Veronia Bahaa <address@hidden>
> ---
> include/qemu/id.h | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/include/qemu/id.h b/include/qemu/id.h
> index 40c7010..7bbcdc0 100644
> --- a/include/qemu/id.h
> +++ b/include/qemu/id.h
> @@ -7,7 +7,30 @@ typedef enum IdSubSystems {
> ID_MAX /* last element, used as array size */
> } IdSubSystems;
>
> +/**
> + * id_generate: Generates an ID of the form PREFIX SUBSYSTEM NUMBER
> + * where:
> + *
> + * - PREFIX is the reserved character '#'
> + * - SUBSYSTEM identifies the subsystem creating the ID
> + * - NUMBER is a decimal number unique within SUBSYSTEM.
> + *
> + * Example: "#block146"
> + *
> + * Returns the generated id string for the subsystem
> + *
> + * @id: the subsystem to generate an id for
> + */
> char *id_generate(IdSubSystems id);
> +
> +/**
> + * id_wellformed: checks that an id starts with a letter
> + * followed by numbers, digits, '-','.', or '_'
> + *
> + * Returns %true if the id is well-formed
> + *
> + * @id: the id to be checked
> + */
> bool id_wellformed(const char *id);
>
> #endif
>
Queued, thanks.
Paolo