Displaying 20 results from an estimated 254 matches for "gpointer".
Did you mean:
pointer
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
...@@ swfedit_file_save (SwfeditFile *file, GE
return ret;
}
+guint
+swfedit_file_get_version (SwfeditFile *file)
+{
+ SwfeditTokenEntry *entry;
+
+ g_return_val_if_fail (SWFEDIT_FILE (file), 3);
+
+ entry = &g_array_index (SWFEDIT_TOKEN (file)->tokens, SwfeditTokenEntry, 0);
+ return GPOINTER_TO_UINT (entry->value);
+}
+
diff --git a/test/swfedit_file.h b/test/swfedit_file.h
index e904950..ecd096a 100644
--- a/test/swfedit_file.h
+++ b/test/swfedit_file.h
@@ -52,6 +52,7 @@ SwfeditFile * swfedit_file_new (const c
gboolean swfedit_file_save (SwfeditFile * file,
GError ** e...
2018 Nov 06
3
[PATCH v2 0/2] p2v: add Shutdown option
This small series for p2v refactors the Reboot menu of the conversion
dialog into something slightly more general, and add the possibility to
shut the machine down.
Lots of work to deal with old GTK versions ...
Changes from v1:
- fix shutdown command
Pino Toscano (2):
p2v: turn Reboot button into a Shutdown popup menu button
p2v: add a Shutdown action (RHBZ#1642044)
p2v/gui.c |
2009 Jul 23
1
viewer updates for fedora submission
This patchset provides updates to the viewer in preperation
for its fedora submission. Included are patches cmd-line
parameterizing hostname/user/pass/vm, the addition of a
man page, cleanup of the project's structure, and updates
to the spec.
2009 Jul 13
0
[PATCH viewer] permit hostname / username / password / vm to be passed in via the cmd line
...ar* hostname;
+const char *hostname, *username, *password;
+const char* selected_vm_name;
struct vm* vm_in_focus;
int ovirt_server_vnc_port = 5900;
@@ -82,10 +83,14 @@ static void start_ui (void);
static GtkWidget *menu_item_new (int which_menu);
static void refresh_menu_vm_list (GtkWidget *, gpointer);
static void connect_to_wui_on_enter (GtkWidget *, gpointer);
-static void connect_to_wui (GtkWidget *, gpointer);
+static void connect_to_wui_via_widget (GtkWidget *, gpointer);
+static void connect_to_wui ();
static void send_key_to_vm (GtkWidget *widget, gpointer _keyComboDef);
static void l...
2018 Nov 05
4
[PATCH 0/2] p2v: add Shutdown option
This small series for p2v refactors the Reboot menu of the conversion
dialog into something slightly more general, and add the possibility to
shut the machine down.
Lots of work to deal with old GTK versions ...
Pino Toscano (2):
p2v: turn Reboot button into a Shutdown popup menu button
p2v: add a Shutdown action (RHBZ#1642044)
p2v/gui.c | 119
2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
...ern const SwfdecAudioCodec swfdec_codec_ffmpeg_audio;
+extern const SwfdecVideoCodec swfdec_codec_ffmpeg_video;
#endif
-extern const SwfdecVideoCodec swfdec_codec_gst_h263;
+extern const SwfdecVideoCodec swfdec_codec_gst_video;
/*** UNCOMPRESSED SOUND ***/
#define U8_FLAG (0x10000)
static gpointer
-swfdec_codec_uncompressed_init (gboolean width, SwfdecAudioOut format)
+swfdec_codec_uncompressed_init (SwfdecAudioFormat type, gboolean width, SwfdecAudioOut format)
{
guint ret = format;
if (!width)
@@ -121,7 +119,7 @@ swfdec_codec_get_audio (SwfdecAudioForma
case SWFDEC_AUDIO_FORMAT...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...ries;
+ for (i = 0; i < listener->n_entries; i++) {
+ if (listener->entries[i].object == NULL && found >= listener->n_entries)
+ found = i;
+ else if (listener->entries[i].object == obj)
+ return TRUE;
+ }
+ if (found >= listener->n_entries) {
+ gpointer mem;
+ guint new_len = listener->n_entries + 16;
+ JSContext *cx = listener->player->jscx;
+
+ for (i = 0; i < listener->n_entries; i++) {
+ JS_RemoveRoot (cx, &listener->entries[i].object);
+ }
+ mem = g_try_realloc (listener->entries, sizeof (SwfdecLis...
2015 May 05
3
[PATCH 0/2] p2v: Warn if vcpus or memory would be larger than supported by RHEL (RHBZ#823758).
https://bugzilla.redhat.com/show_bug.cgi?id=823758
2023 Jan 30
11
[p2v PATCH 00/11] Expose virt-v2v's "-oo"; re-enable openstack
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1792141
Let the user pass "-oo" options from the kernel cmdline and from the GUI
to virt-v2v. This is primarily useful with the OpenStack output mode,
so reenable that mode.
Cc: Alban Lecorps <alban.lecorps at ubisoft.com>
Laszlo
Alban Lecorps (1):
Introduce "p2v.output.misc" for passing "-oo" options
2007 Dec 13
0
2 commits - libswfdec/swfdec_flash_security.c libswfdec/swfdec_flash_security.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_resource_request.c libswfdec/swfdec_resource_request.h libswfdec/swfdec_security.h
...equest.c
index f5bb5fc,020625d..8c3ddbf
--- a/libswfdec/swfdec_resource_request.c
+++ b/libswfdec/swfdec_resource_request.c
@@@ -138,22 -128,12 +138,22 @@@ swfdec_request_resource_perform_load_ca
}
static void
+swfdec_request_resource_perform_load_abort_callback (SwfdecPlayer *player,
+ gpointer data)
+{
+ SwfdecResourceRequest *request = data;
+
+ swfdec_resource_request_free (request);
+}
+
+static void
swfdec_request_resource_perform_load (SwfdecPlayer *player, SwfdecResourceRequest *request)
{
- g_assert (player->resource);
+ g_assert (player->priv->resource);...
2015 May 05
1
Re: [PATCH 1/2] p2v: Factor out code for parsing vcpus & memory from conversion dialog.
...anged, 30 insertions(+), 12 deletions(-)
>
> diff --git a/p2v/gui.c b/p2v/gui.c
> index 7e9de0d..bc762c2 100644
> --- a/p2v/gui.c
> +++ b/p2v/gui.c
> @@ -375,6 +375,8 @@ static void set_interfaces_from_ui (struct config *);
> static void conversion_back_clicked (GtkWidget *w, gpointer data);
> static void start_conversion_clicked (GtkWidget *w, gpointer data);
> static void notify_ui_callback (int type, const char *data);
> +static int get_vcpus_from_conv_dlg (void);
> +static uint64_t get_memory_from_conv_dlg (void);
>
> enum {
> DISKS_COL_CONVERT =...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...0 content-length, but not a too huge one
diff --git a/libswfdec-gtk/swfdec_gtk_loader.c b/libswfdec-gtk/swfdec_gtk_loader.c
index f61a999..fb93cf9 100644
--- a/libswfdec-gtk/swfdec_gtk_loader.c
+++ b/libswfdec-gtk/swfdec_gtk_loader.c
@@ -112,8 +112,7 @@ swfdec_gtk_loader_headers (SoupMessage *msg, gpointer loader)
errno = 0;
l = strtoul (s, &end, 10);
- // FIXME: need a way to allow 0-size files
- if (errno == 0 && *end == 0 && l > 0)
+ if (errno == 0 && *end == 0 && l <= G_MAXLONG)
swfdec_loader_set_size (loader, l);
}
commit 4a6886684a3f3...
2018 Nov 05
0
[PATCH 2/2] p2v: add a Shutdown action (RHBZ#1642044)
...insertions(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index 10fb2939a..7aea4afd5 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -1615,11 +1615,13 @@ static void activate_action (GSimpleAction *action, GVariant *parameter, gpointe
#else
static void shutdown_button_clicked (GtkToolButton *w, gpointer data);
#endif
+static void shutdown_clicked (GtkWidget *w, gpointer data);
static void reboot_clicked (GtkWidget *w, gpointer data);
static gboolean close_running_dialog (GtkWidget *w, GdkEvent *event, gpointer data);
#ifdef USE_POPOVERS
static const GActionEntry shutdown_actions[] = {
+ {...
2018 Nov 06
0
[PATCH v2 2/2] p2v: add a Shutdown action (RHBZ#1642044)
...insertions(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index 10fb2939a..e78f1186c 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -1615,11 +1615,13 @@ static void activate_action (GSimpleAction *action, GVariant *parameter, gpointe
#else
static void shutdown_button_clicked (GtkToolButton *w, gpointer data);
#endif
+static void shutdown_clicked (GtkWidget *w, gpointer data);
static void reboot_clicked (GtkWidget *w, gpointer data);
static gboolean close_running_dialog (GtkWidget *w, GdkEvent *event, gpointer data);
#ifdef USE_POPOVERS
static const GActionEntry shutdown_actions[] = {
+ {...
2007 Jun 19
0
Branch 'as' - test/dump.c
...tion *action =
- &g_array_index (frame->actions, SwfdecSpriteAction, j);
- switch (action->type) {
- case SWFDEC_SPRITE_ACTION_SCRIPT:
- g_print (" %4u script\n", i);
- break;
- case SWFDEC_SPRITE_ACTION_REMOVE:
- g_print (" %4u %4d remove\n", i, GPOINTER_TO_INT (action->data) + 16384);
- break;
- case SWFDEC_SPRITE_ACTION_ADD:
- case SWFDEC_SPRITE_ACTION_UPDATE:
- {
- SwfdecContent *content = action->data;
- g_print (" %4u %4u %s", i, content->depth + 16384,
- action->type == SWFDEC_SPRITE_ACTION_...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...Date: Wed Aug 1 16:54:05 2007 +0200
make it compile (it doesn't work yet)
diff --git a/player/swfdec_slow_loader.c b/player/swfdec_slow_loader.c
index c568316..603627a 100644
--- a/player/swfdec_slow_loader.c
+++ b/player/swfdec_slow_loader.c
@@ -81,12 +81,16 @@ swfdec_slow_loader_tick (gpointer data)
swfdec_loader_error (SWFDEC_LOADER (slow), slow->loader->error);
slow->timeout_id = 0;
return FALSE;
- } else if (slow->loader->eof) {
- swfdec_loader_eof (SWFDEC_LOADER (slow));
- slow->timeout_id = 0;
- return FALSE;
} else {
- return TRUE;
+...
2007 Sep 10
0
3 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h
...atcher or %NULL */
+ SwfdecAsValue watch_data; /* user data to watcher */
+ guint refcount; /* refcount - misused for recursion detection */
+} SwfdecAsWatch;
+
G_DEFINE_TYPE (SwfdecAsObject, swfdec_as_object, G_TYPE_OBJECT)
static void
@@ -141,22 +144,28 @@ swfdec_as_object_mark_property (gpointer
if (var->set)
swfdec_as_object_mark (SWFDEC_AS_OBJECT (var->set));
} else {
- if (var->watch) {
- swfdec_as_object_mark (SWFDEC_AS_OBJECT (var->watch));
- if (var->watch_data) {
- swfdec_as_value_mark (var->watch_data);
- }
- }
swfdec_as_va...
2009 May 19
2
[PATCH server] added ovirt vnc proxy server, to proxy vnc request to managed vms
run on startup by default like the other ovirt services
---
conf/ovirt-vnc-proxy | 49 ++++++++
installer/modules/ovirt/manifests/ovirt.pp | 1 +
ovirt-server.spec.in | 5 +
src/vnc-proxy/vnc-proxy.rb | 167 ++++++++++++++++++++++++++++
4 files changed, 222 insertions(+), 0 deletions(-)
create mode 100755 conf/ovirt-vnc-proxy
2016 May 30
2
[PATCH 0/2] p2v: Allow virt-p2v to be built with Gtk 2 or 3.
... and a small initial patch which makes it easier to test virt-p2v
without having to start up a virtual machine.
There is still a bug in Gtk 3 where the GtkTextView on the final
(running) dialog ignores gtk_widget_set_size_request and so the window
appears just a single pixel high.
Rich.
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
...n "Unknown";
- }
-}
-
-static void
-dump_image (SwfdecImage *image)
-{
- cairo_surface_destroy (swfdec_image_create_surface (image));
- g_print (" %s %u x %u\n", get_image_type_name (image->type),
- image->width, image->height);
-}
-
-static void
-dump_object (gpointer value, gpointer dec)
-{
- SwfdecCharacter *c = value;
-
- g_print ("%d: %s\n", c->id, G_OBJECT_TYPE_NAME (c));
- if (verbose && SWFDEC_IS_GRAPHIC (c)) {
- SwfdecGraphic *graphic = SWFDEC_GRAPHIC (c);
- g_print (" extents: %g %g %g %g\n", graphic->extents...