Displaying 12 results from an estimated 12 matches for "from_string".
2016 Sep 29
3
[PATCH 2/2] v2v: ova: support SHA256 hashes in manifest
The OVF standard allows the use of SHA256 hashes in the manifest file.
Adding support for this.
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
v2v/input_ova.ml | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/v2v/input_ova.ml b/v2v/input_ova.ml
index 513fe30..5420c85 100644
--- a/v2v/input_ova.ml
+++ b/v2v/input_ova.ml
@@ -133,7 +133,7
2016 Sep 29
0
Re: [PATCH 2/2] v2v: ova: support SHA256 hashes in manifest
...in
> - let rex = Str.regexp "SHA1(\\(.*\\))= \\([0-9a-fA-F]+\\)\r?" in
> + let rex = Str.regexp "SHA\\(1\\|256\\)(\\(.*\\))= \\([0-9a-fA-F]+\\)\r?" in
For example, with the above suggestion, catching the whole checksum
type in regex and passing it to a new Checksums.from_string function
could allow to support any checksum type that Checksums knows about.
Thanks,
--
Pino Toscano
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
...t a/test/swfedit_token.c b/test/swfedit_token.c
index f3623fc..b2210fd 100644
--- a/test/swfedit_token.c
+++ b/test/swfedit_token.c
@@ -125,6 +125,21 @@ swfedit_to_string_unsigned (gconstpointe
return g_strdup_printf ("%u", GPOINTER_TO_UINT (value));
}
+static gboolean
+swfedit_rect_from_string (const char *s, gpointer* result)
+{
+ return FALSE;
+}
+
+static char *
+swfedit_rect_to_string (gconstpointer value)
+{
+ const SwfdecRect *rect = value;
+
+ return g_strdup_printf ("%d, %d, %d, %d", (int) rect->x0, (int) rect->y0,
+ (int) rect->x1, (int) rect->y1);...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...ch 'interpreter' of ssh://company at git.freedesktop.org/git/swfdec into interpreter
make it not crash
print the actual tag name
ensure _get_nth_child works with token == NULL
make parsing binary data work
enable editing of properties
change read/write to from_string/to_string
add stubs for saving
export the entry format and rename it to SwfeditTokenEntry
ignore 0-length buffers in bufferqueue
we don't have the header in the uncompressed buffer
We need at least gtk-2.8
add swfedit
implement saving
remove debug...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...;a' && s[0] <= 'f')
+ byte += s[0] + 10 - 'a';
+ else if (s[0] >= 'A' && s[0] <= 'F')
+ byte += s[0] + 10 - 'A';
+ else
+ return FALSE;
+ *result = byte;
+ return TRUE;
+}
+
+static gboolean
+swfedit_binary_from_string (const char *s, gpointer* result)
+{
+ GByteArray *array = g_byte_array_new ();
+ guint byte;
+ guint8 add;
+
+ while (g_ascii_isspace (*s)) s++;
+ do {
+ if (!swfedit_parse_hex (s, &byte))
+ break;
+ s += 2;
+ add = byte;
+ g_byte_array_append (array, &add...
2007 Jan 24
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_script.c test/swfdec_out.c test/swfdec_out.h test/swfedit_tag.c test/swfedit_token.c test/swfedit_token.h
...>= 'a' && s[0] <= 'f')
+ byte += s[0] + 10 - 'a';
+ else if (s[0] >= 'A' && s[0] <= 'F')
+ byte += s[0] + 10 - 'A';
+ else
+ return FALSE;
+ *result = byte;
+ return TRUE;
+}
+
+static gboolean
swfedit_binary_from_string (const char *s, gpointer* result)
{
GByteArray *array = g_byte_array_new ();
- guint8 byte;
+ guint byte;
+ guint8 add;
while (g_ascii_isspace (*s)) s++;
do {
- if (s[0] >= '0' && s[0] <= '9')
- byte = s[0] - '0';
- else if (s[0] >=...
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
...;a' && s[0] <= 'f')
+ byte += s[0] + 10 - 'a';
+ else if (s[0] >= 'A' && s[0] <= 'F')
+ byte += s[0] + 10 - 'A';
+ else
+ return FALSE;
+ *result = byte;
+ return TRUE;
+}
+
+static gboolean
+swfedit_binary_from_string (const char *s, gpointer* result)
+{
+ GByteArray *array = g_byte_array_new ();
+ guint byte;
+ guint8 add;
+
+ while (g_ascii_isspace (*s)) s++;
+ do {
+ if (!swfedit_parse_hex (s, &byte))
+ break;
+ s += 2;
+ add = byte;
+ g_byte_array_append (array, &add...
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
...ror saving file: %s\n", error->message);
- g_error_free (error);
- }
- }
- gtk_widget_destroy (dialog);
-}
-
-static void
-cell_renderer_edited (GtkCellRenderer *renderer, char *path,
- char *new_text, SwfeditFile *file)
-{
- GtkTreeIter iter;
-
- if (!gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (file),
- &iter, path)) {
- g_assert_not_reached ();
- }
- swfedit_token_set_iter (SWFEDIT_TOKEN (file), &iter, new_text);
-}
-
-static gboolean
-open_window (char *filename)
-{
- SwfeditFile *file;
- GtkWidget *window, *scroll, *box, *button, *treeview;
- GError *er...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...ranch 'interpreter' of ssh://company@git.freedesktop.org/git/swfdec into interpreter
make it not crash
print the actual tag name
ensure _get_nth_child works with token == NULL
make parsing binary data work
enable editing of properties
change read/write to from_string/to_string
add stubs for saving
export the entry format and rename it to SwfeditTokenEntry
ignore 0-length buffers in bufferqueue
we don't have the header in the uncompressed buffer
We need at least gtk-2.8
add swfedit
implement saving
remove debug...
2011 Jun 02
48
[PATCH 0/9] libxl: disk configuration handling
This is v3 of my disk series. What were previously patches 01-06 have
been applied. These are the tested and updated remainder, addressing
the previous comments.
1 Preparatory work.
2-4 The new parser and its documentation.
5-6 Replace old parsers with calls to the new one.
7-8 Two features, one of them essential.
9 Basic test suite for disk string parsing, as adhoc script.
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...ranch 'interpreter' of ssh://company@git.freedesktop.org/git/swfdec into interpreter
make it not crash
print the actual tag name
ensure _get_nth_child works with token == NULL
make parsing binary data work
enable editing of properties
change read/write to from_string/to_string
add stubs for saving
export the entry format and rename it to SwfeditTokenEntry
ignore 0-length buffers in bufferqueue
we don't have the header in the uncompressed buffer
We need at least gtk-2.8
add swfedit
implement saving
remove debug...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...,
+ [SWFDEC_TAG_DOINITACTION] = DoInitAction,
};
static const SwfeditTagDefinition *
diff --git a/test/swfedit_token.c b/test/swfedit_token.c
index 9155b94..005e6c1 100644
--- a/test/swfedit_token.c
+++ b/test/swfedit_token.c
@@ -364,6 +364,7 @@ struct {
{ swfedit_matrix_new, swfedit_matrix_from_string, swfedit_matrix_to_string, g_free },
{ swfedit_ctrans_new, swfedit_ctrans_from_string, swfedit_ctrans_to_string, g_free },
{ swfedit_script_new, swfedit_script_from_string, swfedit_script_to_string, swfedit_script_free },
+ { NULL, swfedit_uint32_from_string, swfedit_to_string_unsigned, NULL...