/usr/include/gupnp-1.0/libgupnp/gupnp-error.h is in libgupnp-1.0-dev 0.18.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | /*
* Copyright (C) 2006, 2007 OpenedHand Ltd.
*
* Author: Jorn Baayen <jorn@openedhand.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef __GUPNP_ERROR_H__
#define __GUPNP_ERROR_H__
#include <glib.h>
G_BEGIN_DECLS
GQuark
gupnp_server_error_quark (void) G_GNUC_CONST;
#define GUPNP_SERVER_ERROR (gupnp_server_error_quark ())
/**
* GUPnPServerError:
* @GUPNP_SERVER_ERROR_INTERNAL_SERVER_ERROR: Internal server error.
* @GUPNP_SERVER_ERROR_NOT_FOUND: The resource was not found.
* @GUPNP_SERVER_ERROR_NOT_IMPLEMENTED: This method is not implemented.
* @GUPNP_SERVER_ERROR_INVALID_RESPONSE: Invalid response.
* @GUPNP_SERVER_ERROR_INVALID_URL: Invalid URL.
* @GUPNP_SERVER_ERROR_OTHER: Unknown/unhandled error.
*
* #GError codes used for errors in the #GUPNP_SERVER_ERROR domain, when there
* is communication with another server.
*/
typedef enum {
GUPNP_SERVER_ERROR_INTERNAL_SERVER_ERROR,
GUPNP_SERVER_ERROR_NOT_FOUND,
GUPNP_SERVER_ERROR_NOT_IMPLEMENTED,
GUPNP_SERVER_ERROR_INVALID_RESPONSE,
GUPNP_SERVER_ERROR_INVALID_URL,
GUPNP_SERVER_ERROR_OTHER
} GUPnPServerError;
GQuark
gupnp_eventing_error_quark (void) G_GNUC_CONST;
#define GUPNP_EVENTING_ERROR (gupnp_eventing_error_quark ())
/**
* GUPnPEventingError:
* @GUPNP_EVENTING_ERROR_SUBSCRIPTION_FAILED: The subscription attempt failed.
* @GUPNP_EVENTING_ERROR_SUBSCRIPTION_LOST: The subscription was lost.
* @GUPNP_EVENTING_ERROR_NOTIFY_FAILED: The notification failed.
*
* #GError codes used for errors in the #GUPNP_EVENTING_ERROR domain, during
* eventing of state variables.
*/
typedef enum {
GUPNP_EVENTING_ERROR_SUBSCRIPTION_FAILED,
GUPNP_EVENTING_ERROR_SUBSCRIPTION_LOST,
GUPNP_EVENTING_ERROR_NOTIFY_FAILED
} GUPnPEventingError;
GQuark
gupnp_control_error_quark (void) G_GNUC_CONST;
#define GUPNP_CONTROL_ERROR (gupnp_control_error_quark ())
/**
* GUPnPControlError:
* @GUPNP_CONTROL_ERROR_INVALID_ACTION: The action name was invalid.
* @GUPNP_CONTROL_ERROR_INVALID_ARGS: The action arguments were invalid.
* @GUPNP_CONTROL_ERROR_OUT_OF_SYNC: Out of sync (deprecated).
* @GUPNP_CONTROL_ERROR_ACTION_FAILED: The action failed.
*
* #GError codes used for errors in the #GUPNP_CONTROL_ERROR domain, during
* invocation of service actions.
*/
typedef enum {
GUPNP_CONTROL_ERROR_INVALID_ACTION = 401,
GUPNP_CONTROL_ERROR_INVALID_ARGS = 402,
GUPNP_CONTROL_ERROR_OUT_OF_SYNC = 403,
GUPNP_CONTROL_ERROR_ACTION_FAILED = 501
} GUPnPControlError;
GQuark
gupnp_xml_error_quark (void) G_GNUC_CONST;
#define GUPNP_XML_ERROR (gupnp_xml_error_quark ())
/**
* GUPnPXMLError:
* @GUPNP_XML_ERROR_PARSE: Generic XML parsing error.
* @GUPNP_XML_ERROR_NO_NODE: A required XML node was not found.
* @GUPNP_XML_ERROR_EMPTY_NODE: An XML node is unexpectedly empty.
* @GUPNP_XML_ERROR_OTHER: Unknown/unhandled XML related errors.
*
* #GError codes used for errors in the #GUPNP_XML_ERROR domain, during
* processing of XML data.
*/
typedef enum {
GUPNP_XML_ERROR_PARSE,
GUPNP_XML_ERROR_NO_NODE,
GUPNP_XML_ERROR_EMPTY_NODE,
GUPNP_XML_ERROR_INVALID_ATTRIBUTE,
GUPNP_XML_ERROR_OTHER
} GUPnPXMLError;
G_END_DECLS
#endif /* __GUPNP_ERROR_H__ */
|