search for: eventhandle

Displaying 20 results from an estimated 21 matches for "eventhandle".

Did you mean: eventhandler
2016 Aug 02
29
[Bug 97192] New: SuperTuxkart graphic errors [NVE4 - GK104]
https://bugs.freedesktop.org/show_bug.cgi?id=97192 Bug ID: 97192 Summary: SuperTuxkart graphic errors [NVE4 - GK104] Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS: other Status: NEW Severity: normal Priority: medium Component: Drivers/DRI/nouveau Assignee:
2009 Apr 12
0
Adding an eventhandler for click, but still be able to zoom in with doubleclick
Hello all, I am using Mapstraction in Zoph (http://www.zoph.org), and although it works very well (thanks to all for their efforts!), I am running into one little problem: On one page, I am allowing a user to add / edit a marker on a page, by clicking on the map. I do this by adding an eventhandler: mapstraction.addEventListener(''click'', clickmap); However, this causes zooming in by doubleclicking to stop working. I have seen pages (Googlemaps itself, for example) where this still works, also, Javascript has seperate events for click and doubleclick, so I guess it should...
2012 Jul 20
5
[stable 9] panic on reboot: ipmi_wd_event()
Working on the Dell R420 today, got most of it working, even the broadcom ethernet cards! However, I get the following when I reboot the system: Syncing disks, vnodes remaining...4 Sleeping thread (tid 100107, pid 9) owns a non-sleepable lock KDB: stack backtrace of thread 100107: sched_switch() at sched_switch+0x19f mi_switch() at mi_switch+0x208 sleepq_switch() at sleepq_switch+0xfc
2019 Jul 30
0
Re: [PATCH] Rust bindings: Implement Event features
...opaque: *const c_void, >+ ) -> i32; >+ fn guestfs_delete_event_callback(g: *const base::guestfs_h, eh: i32); >+ fn guestfs_event_to_string(bitmask: u64) -> *const c_char; >+ fn free(buf: *const c_void); >+} >+ >+#[derive(Hash, PartialEq, Eq)] >+pub struct EventHandle { >+ eh: i32, >+} >+ >+pub type Callback = FnMut(guestfs::Event, EventHandle, &[i8], &[u64]); >+ >+fn events_to_bitmask(v: &[guestfs::Event]) -> u64 { >+ let mut r = 0u64; >+ for x in v.iter() { >+ r |= x.to_u64(); >+ } >+ r >...
2019 Jul 30
4
[PATCH] Rust bindings: Implement Event features
...@@ -34,31 +38,37 @@ extern "C" { const GUESTFS_CREATE_NO_ENVIRONMENT: i64 = 1; const GUESTFS_CREATE_NO_CLOSE_ON_EXIT: i64 = 2; -pub struct Handle { +pub struct Handle<'a> { pub(crate) g: *mut guestfs_h, + pub(crate) callbacks: collections::HashMap< + event::EventHandle, + sync::Arc<Fn(guestfs::Event, event::EventHandle, &[u8], &[u64]) + 'a>, + >, } -impl Handle { - pub fn create() -> Result<Handle, error::Error> { +impl<'a> Handle<'a> { + pub fn create() -> Result<Handle<'a>, err...
2019 Aug 05
2
[PATCH 2/2] Rust bindings: Implement callback handlers
...64, + flags: i32, + opaque: *const c_void, + ) -> i32; + fn guestfs_delete_event_callback(g: *const base::guestfs_h, eh: i32); + fn guestfs_event_to_string(bitmask: u64) -> *const c_char; + fn free(buf: *const c_void); +} + #[derive(Hash, PartialEq, Eq)] pub struct EventHandle { eh: i32, } + +fn events_to_bitmask(v: &[guestfs::Event]) -> u64 { + let mut r = 0u64; + for x in v.iter() { + r |= x.to_u64(); + } + r +} + +pub fn event_to_string(events: &[guestfs::Event]) -> Result<String, error::Error> { + let bitmask = events_t...
2011 Feb 15
8
Trigger an event after a puppet run
Hi, We''d like to run puppet regularly in noop then trigger an event after the run depending on the results, namely to hook puppet in to our Nagios implementation so that if anything changes for any reason we receive an alert. We already have puppet configured to send out puppet reports via email but don''t want to completely rely on that. Is it possible to craft a trigger of
2019 Aug 05
3
Re: [PATCH] Rust bindings: Implement Event features
I fixed based on comments. I'll send these two patches to this mailing list. - Fix Handle -> Handle<'a> - Add events Regards, Hiroyuki 2019年8月1日(木) 0:01 Pino Toscano <ptoscano@redhat.com>: > Hi Hiroyuki, > > On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote: > > This patch includes: > > > > - Event callback handlers > > -
2019 Jul 30
1
Re: [PATCH] Rust bindings: Implement Event features
...-> i32; > >+ fn guestfs_delete_event_callback(g: *const base::guestfs_h, eh: i32); > >+ fn guestfs_event_to_string(bitmask: u64) -> *const c_char; > >+ fn free(buf: *const c_void); > >+} > >+ > >+#[derive(Hash, PartialEq, Eq)] > >+pub struct EventHandle { > >+ eh: i32, > >+} > >+ > >+pub type Callback = FnMut(guestfs::Event, EventHandle, &[i8], &[u64]); > >+ > >+fn events_to_bitmask(v: &[guestfs::Event]) -> u64 { > >+ let mut r = 0u64; > >+ for x in v.iter() { > >+...
2019 Aug 05
0
[PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
...@@ -34,31 +37,37 @@ extern "C" { const GUESTFS_CREATE_NO_ENVIRONMENT: i64 = 1; const GUESTFS_CREATE_NO_CLOSE_ON_EXIT: i64 = 2; -pub struct Handle { +pub struct Handle<'a> { pub(crate) g: *mut guestfs_h, + pub(crate) callbacks: collections::HashMap< + event::EventHandle, + Box<Box<dyn Fn(guestfs::Event, event::EventHandle, &[u8], &[u64]) + 'a>>, + >, } -impl Handle { - pub fn create() -> Result<Handle, error::Error> { +impl<'a> Handle<'a> { + pub fn create() -> Result<Handle<'a...
2003 Aug 21
0
OT: smartcard sectok - 0608 error loading driver
Hello! I know this is a bit off topic but its hard to get some help in this case. the driver for my Towitoko Chipdrive USB works: Aug 21 12:33:12 idefix pcscd: eventhandler.c:380 EHSpawnEventHandler: Card Removed From Towitoko Chipdrive USB 0 0 Aug 21 12:33:16 idefix pcscd: eventhandler.c:468 EHSpawnEventHandler: Card inserted into Towitoko Chipdrive USB 0 0 Aug 21 12:33:16 idefix pcscd: EHSpawnEventHandler: Card ATR: 3B 95 15 40 FF 68 01 02 02 04 now i am trying to...
2014 Jan 13
2
A question about 7
...d, to upgrade from RHEL 7 beta to CentOS 7? Reason for this: at one of my local sf clubs, I've been trying to install Evergreen, F/OSS library software, on a system, and it's a nightmare. They seem to have been building it for Ubuntu whateverthelatestanimalis. The biggest problem is, IIRC, eventhandler and memchached; oh, and it uses postgresql 9, and nothing else. PGSQL 9 was not a big deal to install, but the other stuff.... Even trying to build it in /usr/local is a royal mess: though I've got the dbi installed, ./configure can't find it. I do see, with a little googling, that everyt...
2019 Aug 05
1
Re: [PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
...e::*; So it means rust allows cyclic uses of modules/crates? > diff --git a/rust/src/event.rs b/rust/src/event.rs > new file mode 100644 > index 000000000..c363e913a > --- /dev/null > +++ b/rust/src/event.rs > @@ -0,0 +1,4 @@ > +#[derive(Hash, PartialEq, Eq)] > +pub struct EventHandle { > + eh: i32, > +} Remember the copyright/license in new files. -- Pino Toscano
2006 Mar 29
0
MaxConnections in IE and Ajax.Request/Sortable
...ver theres a new connection-slot available. So anyone of you who has any experience of this? I canät show you any live code right now since the application isn''t publicly available. I might be able to make a test case, but I''d rather not coz of time-issues =) btw: The onComplete-eventhandler for the Ajax.Request sets the xhr to null as a desperate attempt to fix this =) of course no problems whatsoever in saf/moz/ff/op etc. Many thanks in advance, Glenn Nilsson
2007 Dec 27
0
[ wxruby-Bugs-16622 ] Calling skip() on CommandEvent causes segfault on OS X 10.5
...: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000005 0x906fc265 in CFGetTypeID () (gdb) whe whe #0 0x906fc265 in CFGetTypeID () #1 0x92fc6246 in HIAboutBox () #2 0x92e3860e in HIStdAppHandler::HandleEvent () #3 0x92e358fe in TEventHandler::EventHandler () #4 0x92daf863 in DispatchEventToHandlers () #5 0x92daec9d in SendEventToEventTargetInternal () #6 0x92dcb08e in SendEventToEventTarget () #7 0x92dffc9d in SendHICommandEvent () #8 0x92e26377 in SendMenuCommandWithContextAndModifiers () #9 0x92e26334 in SendMenuItemSelectedEv...
2005 Jul 12
3
comm between gui and app?
To me, the main app (an object) is separate from the app gui (object)... MVC''ish. How can I have the gui part communicate to the app that an event has taken place? Example code somewhere? Thank you. -- - Martin J. Brown, Jr. - - mjbjr@beaudesign.com - Public PGP Key ID: 0xB09AFEFE keyserver: http://pgpkeys.mit.edu:11371/ Key
2018 Apr 20
6
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
On Thu, 19 Apr 2018 18:42:04 -0700 Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > Use the registration/notification framework supported by the generic > failover infrastructure. > > Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> Do what you want to other devices but leave netvsc alone. Adding these failover ops does not reduce the code
2018 Apr 20
6
[PATCH v7 net-next 4/4] netvsc: refactor notifier/event handling code to use the failover framework
On Thu, 19 Apr 2018 18:42:04 -0700 Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > Use the registration/notification framework supported by the generic > failover infrastructure. > > Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> Do what you want to other devices but leave netvsc alone. Adding these failover ops does not reduce the code
2003 Sep 01
1
testers needed for CAM INVARIANTS fix
...i_da.c#19 - /usr/home/ken/perforce2/FreeBSD-ken-RELENG_4/src/sys/cam/scsi/scsi_da.c ==== *** /tmp/tmp.5698.1 Mon Sep 1 16:06:53 2003 --- /usr/home/ken/perforce2/FreeBSD-ken-RELENG_4/src/sys/cam/scsi/scsi_da.c Mon Sep 1 15:50:53 2003 *************** *** 48,53 **** --- 48,54 ---- #include <sys/eventhandler.h> #include <sys/malloc.h> #include <sys/cons.h> + #include <sys/taskqueue.h> #include <machine/md_var.h> *************** *** 130,135 **** --- 131,137 ---- struct disk_params params; struct disk disk; union ccb saved_ccb; + struct task sysctl_ta...
2006 Apr 12
1
powerd not behaving with an Asus A8V-MX and Athlon 64 X2 3800+
...28 sleep queues 131 5K - 131 32 sbuf 0 0K - 600 16,32,64,128,256,512,1024,2048,4096 rman 164 11K - 605 16,64 kbdmux 7 9K - 7 16,128,256,2048,4096 kobj 265 530K - 316 2048 eventhandler 39 3K - 39 32,128 devstat 16 33K - 16 16,4096 bus-sc 86 38K - 3433 16,32,64,128,256,512,1024,2048,4096 bus 1100 47K - 6251 16,32,64,128,1024 SWAP 2 549K - 2 64 umtx...