From 6b696056333bbefa19fc5296f14d2f71e2a82594 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 22 Nov 2011 13:07:50 +0100 Subject: build: chain up new 0.6 API and link against libmm-common Also removed the MMSerialError implementation from `src/mm-errors.[h|c]', as it is now included in the new `include/ModemManager-errors.h' header file. All the other enums and errors without clashing names will be ported afterwards to the new base code. --- src/mm-errors.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'src/mm-errors.c') diff --git a/src/mm-errors.c b/src/mm-errors.c index 841ad0fa..ba74d015 100644 --- a/src/mm-errors.c +++ b/src/mm-errors.c @@ -21,39 +21,6 @@ #define ENUM_ENTRY(NAME, DESC) { NAME, "" #NAME "", DESC } -GQuark -mm_serial_error_quark (void) -{ - static GQuark ret = 0; - - if (ret == 0) - ret = g_quark_from_static_string ("mm_serial_error"); - - return ret; -} - -GType -mm_serial_error_get_type (void) -{ - static GType etype = 0; - - if (etype == 0) { - static const GEnumValue values[] = { - ENUM_ENTRY (MM_SERIAL_ERROR_OPEN_FAILED, "SerialOpenFailed"), - ENUM_ENTRY (MM_SERIAL_ERROR_SEND_FAILED, "SerialSendfailed"), - ENUM_ENTRY (MM_SERIAL_ERROR_RESPONSE_TIMEOUT, "SerialResponseTimeout"), - ENUM_ENTRY (MM_SERIAL_ERROR_OPEN_FAILED_NO_DEVICE, "SerialOpenFailedNoDevice"), - ENUM_ENTRY (MM_SERIAL_ERROR_FLASH_FAILED, "SerialFlashFailed"), - ENUM_ENTRY (MM_SERIAL_ERROR_NOT_OPEN, "SerialNotOpen"), - { 0, 0, 0 } - }; - - etype = g_enum_register_static ("MMSerialError", values); - } - - return etype; -} - GQuark mm_modem_error_quark (void) { -- cgit v1.2.3-70-g09d2