From c58db4e015c1d6aeccccb167f7f2f68c211a3b86 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 23 Nov 2011 12:36:47 +0100 Subject: core: start using our newly defined errors --- src/mm-error-helpers.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/mm-error-helpers.h (limited to 'src/mm-error-helpers.h') diff --git a/src/mm-error-helpers.h b/src/mm-error-helpers.h new file mode 100644 index 00000000..035ac6c1 --- /dev/null +++ b/src/mm-error-helpers.h @@ -0,0 +1,32 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details: + * + * Copyright (C) 2008 Novell, Inc. + * Copyright (C) 2009 - 2012 Red Hat, Inc. + * Copyright (C) 2011 - 2012 Google, Inc. + */ + +#ifndef MM_ERROR_HELPERS_H +#define MM_ERROR_HELPERS_H + +#include + +#include +#include + +GError *mm_connection_error_for_code (MMConnectionError code); +GError *mm_mobile_equipment_error_for_code (MMMobileEquipmentError code); +GError *mm_mobile_equipment_error_for_string (const gchar *str); +GError *mm_message_error_for_code (MMMessageError code); +GError *mm_message_error_for_string (const gchar *str); + +#endif /* MM_ERROR_HELPERS_H */ -- cgit v1.2.3-70-g09d2