projects/package-update-indicator

diff pui-types.h @ 0:6884bb8130ca

Initial revision
author Guido Berhoerster <guido+pui@berhoerster.name>
date Sun May 20 11:32:57 2018 +0200 (2018-05-20)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pui-types.h	Sun May 20 11:32:57 2018 +0200
     1.3 @@ -0,0 +1,47 @@
     1.4 +/*
     1.5 + * Copyright (C) 2018 Guido Berhoerster <guido+pui@berhoerster.name>
     1.6 + *
     1.7 + * Permission is hereby granted, free of charge, to any person obtaining
     1.8 + * a copy of this software and associated documentation files (the
     1.9 + * "Software"), to deal in the Software without restriction, including
    1.10 + * without limitation the rights to use, copy, modify, merge, publish,
    1.11 + * distribute, sublicense, and/or sell copies of the Software, and to
    1.12 + * permit persons to whom the Software is furnished to do so, subject to
    1.13 + * the following conditions:
    1.14 + *
    1.15 + * The above copyright notice and this permission notice shall be included
    1.16 + * in all copies or substantial portions of the Software.
    1.17 + *
    1.18 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    1.19 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    1.20 + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    1.21 + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    1.22 + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    1.23 + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    1.24 + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    1.25 + */
    1.26 +
    1.27 +#ifndef	PUI_TYPES_H
    1.28 +#define	PUI_TYPES_H
    1.29 +
    1.30 +#include <glib-object.h>
    1.31 +
    1.32 +G_BEGIN_DECLS
    1.33 +
    1.34 +#define	PUI_TYPE_STATE	(pui_state_get_type())
    1.35 +
    1.36 +typedef enum {
    1.37 +    PUI_STATE_INITIAL,
    1.38 +    PUI_STATE_UP_TO_DATE,
    1.39 +    PUI_STATE_NORMAL_UPDATES_AVAILABLE,
    1.40 +    PUI_STATE_IMPORTANT_UPDATES_AVAILABLE,
    1.41 +    PUI_STATE_ERROR,
    1.42 +    PUI_STATE_LAST
    1.43 +} PuiState;
    1.44 +
    1.45 +GType	pui_state_get_type(void);
    1.46 +gchar *	pui_types_enum_to_string(GType, gint);
    1.47 +
    1.48 +G_END_DECLS
    1.49 +
    1.50 +#endif /* !PUI_TYPES_H */