search for: g_set_error

Displaying 8 results from an estimated 8 matches for "g_set_error".

2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created. As part of this patch: - required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago; - newer version of libdevmapper allowed to simplify code base a little bit; -
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...ecBits *bits, GError **error) +{ + guint sig1, sig2, sig3, bytes_total; + + sig1 = swfdec_bits_get_u8 (bits); + sig2 = swfdec_bits_get_u8 (bits); + sig3 = swfdec_bits_get_u8 (bits); + if ((sig1 != 'F' && sig1 != 'C') || sig2 != 'W' || sig3 != 'S') { + g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED, + "This is not a SWF file"); + return NULL; + } + + swfedit_token_add (SWFEDIT_TOKEN (file), "version", SWFEDIT_TOKEN_UINT8, + GUINT_TO_POINTER (swfdec_bits_get_u8 (bits))); + bytes_total = swfdec_bits_get_u32 (bits); + + i...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...ecBits *bits, GError **error) -{ - guint sig1, sig2, sig3, bytes_total; - - sig1 = swfdec_bits_get_u8 (bits); - sig2 = swfdec_bits_get_u8 (bits); - sig3 = swfdec_bits_get_u8 (bits); - if ((sig1 != 'F' && sig1 != 'C') || sig2 != 'W' || sig3 != 'S') { - g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED, - "This is not a SWF file"); - return NULL; - } - - swfedit_token_add (SWFEDIT_TOKEN (file), "version", SWFEDIT_TOKEN_UINT8, - GUINT_TO_POINTER (swfdec_bits_get_u8 (bits))); - bytes_total = swfdec_bits_get_u32 (bits) - 8; -...
2006 Apr 05
1
build error : xapian-core-0.9.4_svn6707 with UTF-8 patch
...before '*' token /usr/include/glib-2.0/glib/gerror.h:49: error: expected `,' or `...' before '*' token /usr/include/glib-2.0/glib/gerror.h:51: error: ISO C++ forbids declaration of `GError' with no type /usr/include/glib-2.0/glib/gerror.h:56: error: variable or field `g_set_error' declared void /usr/include/glib-2.0/glib/gerror.h:56: error: `GError' was not declared in this scope /usr/include/glib-2.0/glib/gerror.h:56: error: `err' was not declared in this scope /usr/include/glib-2.0/glib/gerror.h:57: error: `GQuark' was not declared in this scope /usr/in...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...ssed */ @@ -113,7 +114,7 @@ swf_parse_header1 (SwfeditFile *file, Sw "Unable to uncompress file"); return ret; } else { - SwfdecBuffer *ret = swfdec_bits_get_buffer (bits, -1); + SwfdecBuffer *ret = swfdec_bits_get_buffer (bits, bytes_total); if (ret == NULL) g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED, "File too small"); @@ -124,14 +125,9 @@ swf_parse_header1 (SwfeditFile *file, Sw static void swf_parse_header2 (SwfeditFile *file, SwfdecBits *bits) { - SwfdecRect rect; - - swfdec_bits_get_rect (bits, &rect); - swfdec_bits_syncbits...
2006 Mar 03
1
xapian-0.9.4 queryparser build errors after applying utf-8 patch
...9; before '*' token /usr/include/glib-2.0/glib/gerror.h:49: error: expected `,' or `...' before '*' token /usr/include/glib-2.0/glib/gerror.h:51: error: ISO C++ forbids declaration of `GError' with no type /usr/include/glib-2.0/glib/gerror.h:56: error: variable or field `g_set_error' declared void /usr/include/glib-2.0/glib/gerror.h:56: error: `GError' was not declared in this scope /usr/include/glib-2.0/glib/gerror.h:56: error: `err' was not declared in this scope /usr/include/glib-2.0/glib/gerror.h:57: error: `GQuark' was not declared in this scope /usr/inclu...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...ssed */ @@ -113,7 +114,7 @@ swf_parse_header1 (SwfeditFile *file, Sw "Unable to uncompress file"); return ret; } else { - SwfdecBuffer *ret = swfdec_bits_get_buffer (bits, -1); + SwfdecBuffer *ret = swfdec_bits_get_buffer (bits, bytes_total); if (ret == NULL) g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED, "File too small"); @@ -124,14 +125,9 @@ swf_parse_header1 (SwfeditFile *file, Sw static void swf_parse_header2 (SwfeditFile *file, SwfdecBits *bits) { - SwfdecRect rect; - - swfdec_bits_get_rect (bits, &rect); - swfdec_bits_syncbits...
2008 Jan 08
0
9 commits - configure.ac test/custom test/Makefile.am test/swfdec_test_initialize.as test/swfdec_test_initialize.h test/swfdec_test_test.c test/trace
...= 0; - inter->mouse_y = 0; - inter->mouse_button = 0; - inter->cur_idx = 0; - inter->time_elapsed = 0; -} - -static void -swfdec_interaction_scanner_message (GScanner *scanner, gchar *message, gboolean error) -{ - if (!error) - g_printerr ("warning: %s\n", message); - g_set_error (scanner->user_data, G_FILE_ERROR, G_FILE_ERROR_FAILED, "%s", message); -} - -static void -swfdec_command_append_mouse (SwfdecInteraction *inter, SwfdecCommandType type, int x, int y, int button) -{ - SwfdecCommand command; - - command.command = type; - command.args.mouse.x = x; -...