summaryrefslogtreecommitdiff
path: root/src/mm-error-helpers.h
blob: e99d1662d7ca6f364b3d71e3b41158efa5b63d19 (plain)
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
/* -*- 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 <glib-object.h>

#include <ModemManager.h>
#include <libmm-glib.h>

GError *mm_connection_error_for_code         (MMConnectionError       code, gpointer log_object);
GError *mm_mobile_equipment_error_for_code   (MMMobileEquipmentError  code, gpointer log_object);
GError *mm_mobile_equipment_error_for_string (const gchar            *str,  gpointer log_object);
GError *mm_message_error_for_code            (MMMessageError          code, gpointer log_object);
GError *mm_message_error_for_string          (const gchar            *str,  gpointer log_object);

#endif /* MM_ERROR_HELPERS_H */