search for: noption

Displaying 20 results from an estimated 40 matches for "noption".

Did you mean: option
2007 Jun 19
1
[PATCH] Added screen edge trigger delay setting.
...vent.c @@ -680,6 +680,60 @@ triggerEdgeLeaveBindings (CompDisplay *d, } static Bool +triggerAllEdgeEnterBindings (CompDisplay *d, + CompActionState state, + unsigned int edge, + CompOption *argument, + int nArgument) +{ + CompOption *option; + int nOption; + CompPlugin *p; + + for (p = getPlugins(); p; p = p->next) + { + if (p->vTable->getDisplayOptions) + { + option = (*p->vTable->getDisplayOptions) (p, d, &nOption); + if (triggerEdgeEnterBindings (d, + option, nOption, + state, edge, + argument...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...th + 20.0; + reg.extents.y2 = y + extents.height; + + + as->content = TRUE; + damageScreenRegion (s, &reg); + + } +} + + +static Bool +annoRemoteInitiate (CompDisplay *d, + CompAction *action, + CompActionState state, + CompOption *option, + int nOption) +{ + CompScreen *s; + Window xid; + char *tool; + cairo_t *cr; + + xid = getIntOptionNamed (option, nOption, "root", 0); + + tool = getStringOptionNamed (option, nOption, "tool", "Brush"); + + s = findScreenAtDisplay (d, xid); + + if...
2006 Oct 18
1
[PATCH] Compiz Events
...I can think of at the moment are 'option changed' and 'cube settle on top' (Maybe a widget plugin can use this) Plugins can send compiz events like this. (*d->handleCompizEvent) (d, "switcher", "NEXT_EVENT", option, nOption); In this case, switcher is sending the NEXT_EVENT signal. It is probably best to deal with strings for the events since they do not have to be defined and are easily passed to external applications. The option can be any type of extra information passed as a pointer to a CompOption as per nor...
2006 Nov 12
4
Include option type in gconf schema
I am writing a configuration front end for the compiz gconf plugin at the moment, but it's proving harder than it should be because gconf does not record what type of compiz option the key is. For example, say i want a color picker for each color option the only way I can tell with gconf if it is color is if it has a # at the beginning, but there could be string option which also have a # at
2007 Apr 11
2
Patch for ini plugin
...ni.c +++ b/plugins/ini.c @@ -26,6 +26,7 @@ * David Reveman <davidr@novell.com> */ +#define _GNU_SOURCE /* for asprintf */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -895,7 +854,6 @@ iniSaveOptions (CompDisplay *d, while (nOption--) { status = FALSE; - strVal = strdup (""); int i; switch (option->type) @@ -907,8 +865,11 @@ iniSaveOptions (CompDisplay *d, case CompOptionTypeColor: case CompOptionTypeMatch: strVal = iniOptionValueToString (&option->value, option->type); - if (strVal...
2006 Jun 08
1
[PATCH] raise window key binding
With raise_on_click disabled, I wanted to be able to raise a window with a button click sometimes. It seemed logical to do something like the lower window key binding. So I did it. It was quite simple, but here is the patch anyway. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/octet-stream Size: 3680 bytes Desc: not available
2009 Apr 05
1
RJava question(class not found with rJava's vm, though found with alternate vm)
...some classloader problem in rJava? ==code== void create_vm(const char *clap) { char* classpath = (char*) calloc(18+strlen(clap)+1, sizeof(char)); sprintf(classpath,"-Djava.class.path=%s",clap); JavaVMInitArgs args; JavaVMOption options[2]; args.version = JNI_VERSION_1_4; args.nOptions = 2; options[0].optionString = classpath; options[1].optionString = "-Xrs"; args.options = options; args.ignoreUnrecognized = JNI_TRUE; JavaVM *jvms[32]; jsize vms=0; int r=0; r=JNI_GetCreatedJavaVMs(jvms, 32, &vms); if (r) { error("JNI_GetCreatedJavaVMs re...
2010 Apr 26
2
[PATCH] Make Queue announcements more consistent (1.4.26.2)
...dic_announce_time = time(NULL); qe.last_periodic_announce_sound = 0; qe.valid_digits = 0; @@ -4074,9 +4080,12 @@ break; } /* Try calling all queue members for 'timeout' seconds */ - res = try_calling(&qe, args.options, args.announceoverride, args.url, &tries, &noption, args.agi); - if (res) - goto stop; + if ((time(NULL) - qe.last_ring_time) > qe.parent->retry) { + res = try_calling(&qe, args.options, args.announceoverride, args.url, &tries, &noption, args.agi); + qe.last_ring_time = time(NULL); + if (res) + goto stop; + }...
2009 Jul 23
0
[PATCH 2/2] virtio: retry on vector assignment failure
...25c7995 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -278,27 +278,24 @@ static void vp_free_vectors(struct virtio_device *vdev) vp_dev->msix_entries = NULL; } -static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, - int *options, int noptions) -{ - int i; - for (i = 0; i < noptions; ++i) - if (!pci_enable_msix(dev, entries, options[i])) - return options[i]; - return -EBUSY; -} - -static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs,...
2009 Jul 23
0
[PATCH 2/2] virtio: retry on vector assignment failure
...25c7995 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -278,27 +278,24 @@ static void vp_free_vectors(struct virtio_device *vdev) vp_dev->msix_entries = NULL; } -static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, - int *options, int noptions) -{ - int i; - for (i = 0; i < noptions; ++i) - if (!pci_enable_msix(dev, entries, options[i])) - return options[i]; - return -EBUSY; -} - -static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs,...
2006 Oct 09
1
[PATCH] dbus terminate action
...(DBusConnection *connection, +dbusHandleActivateDeactivateMessage (DBusConnection *connection, DBusMessage *message, CompDisplay *d, - char **path) + char **path, + Bool deactivate) { CompOption *option; int nOption; @@ -152,8 +174,15 @@ dbusHandleActivateMessage (DBusConnectio if (option->type != CompOptionTypeAction) return FALSE; - if (!option->value.action.initiate) - return FALSE; + if (!deactivate) + { + if (!option->value.action.initiate) + return FALSE; + } + else { +...
2009 Jul 23
0
qemu-kvm missing some msix capability check
...67c972 100644 > --- a/drivers/virtio/virtio_pci.c > +++ b/drivers/virtio/virtio_pci.c > @@ -273,26 +273,35 @@ static void vp_free_vectors(struct virtio_device *vdev) > } > > static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, > - int *options, int noptions) > + int nvectors) > { > - int i; > - for (i = 0; i < noptions; ++i) > - if (!pci_enable_msix(dev, entries, options[i])) > - return options[i]; > - return -EBUSY; > + int err = pci_enable_msix(dev, entries, nvectors); > + if (err > 0) > + err = -ENOSPC;...
2009 Jul 23
0
qemu-kvm missing some msix capability check
...67c972 100644 > --- a/drivers/virtio/virtio_pci.c > +++ b/drivers/virtio/virtio_pci.c > @@ -273,26 +273,35 @@ static void vp_free_vectors(struct virtio_device *vdev) > } > > static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, > - int *options, int noptions) > + int nvectors) > { > - int i; > - for (i = 0; i < noptions; ++i) > - if (!pci_enable_msix(dev, entries, options[i])) > - return options[i]; > - return -EBUSY; > + int err = pci_enable_msix(dev, entries, nvectors); > + if (err > 0) > + err = -ENOSPC;...
2009 Jul 26
0
[PATCHv3 2/2] virtio: refactor find_vqs
...r we have vector per vq */ + bool per_vq_vectors; }; /* Constants for MSI-X */ @@ -278,27 +280,24 @@ static void vp_free_vectors(struct virtio_device *vdev) vp_dev->msix_entries = NULL; } -static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, - int *options, int noptions) -{ - int i; - for (i = 0; i < noptions; ++i) - if (!pci_enable_msix(dev, entries, options[i])) - return options[i]; - return -EBUSY; -} - -static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +static int vp_request_vectors(struct virtio_device *vdev, int nvectors, +...
2009 Jul 26
0
[PATCHv3 2/2] virtio: refactor find_vqs
...r we have vector per vq */ + bool per_vq_vectors; }; /* Constants for MSI-X */ @@ -278,27 +280,24 @@ static void vp_free_vectors(struct virtio_device *vdev) vp_dev->msix_entries = NULL; } -static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, - int *options, int noptions) -{ - int i; - for (i = 0; i < noptions; ++i) - if (!pci_enable_msix(dev, entries, options[i])) - return options[i]; - return -EBUSY; -} - -static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +static int vp_request_vectors(struct virtio_device *vdev, int nvectors, +...
2009 May 13
1
[PATCHv5 3/3] virtio_pci: optional MSI-X support
...I_CONFIG_VECTOR); + /* Flush the write out to device */ + ioread16(vp_dev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); + + vp_dev->msix_enabled = 0; + pci_disable_msix(vp_dev->pci_dev); + } +} + +static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, + int *options, int noptions) +{ + int i; + for (i = 0; i < noptions; ++i) + if (!pci_enable_msix(dev, entries, options[i])) + return options[i]; + return -EBUSY; +} + +static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +{ + struct virtio_pci_device *vp_dev = to_vp_device(vdev); + const char *na...
2009 May 13
1
[PATCHv5 3/3] virtio_pci: optional MSI-X support
...I_CONFIG_VECTOR); + /* Flush the write out to device */ + ioread16(vp_dev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); + + vp_dev->msix_enabled = 0; + pci_disable_msix(vp_dev->pci_dev); + } +} + +static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, + int *options, int noptions) +{ + int i; + for (i = 0; i < noptions; ++i) + if (!pci_enable_msix(dev, entries, options[i])) + return options[i]; + return -EBUSY; +} + +static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +{ + struct virtio_pci_device *vp_dev = to_vp_device(vdev); + const char *na...
2006 Nov 10
2
Command Line Prompt Symbol
Hi I run R in Windows. Is there a simple way of changing the prompt symbol ">" to, say, "R>" ? (Not just for a temporary session, but every time R command window is opened.) The documentation of doing this is rather "sparse". Much appreciated for your assistance. Jacob Jacob L van Wyk Department of Statistics University of Johannesburg, APK P O Box 524
2009 May 14
1
[PATCHv6 4/4] virtio_pci: optional MSI-X support
...I_CONFIG_VECTOR); + /* Flush the write out to device */ + ioread16(vp_dev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); + + vp_dev->msix_enabled = 0; + pci_disable_msix(vp_dev->pci_dev); + } +} + +static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, + int *options, int noptions) +{ + int i; + for (i = 0; i < noptions; ++i) + if (!pci_enable_msix(dev, entries, options[i])) + return options[i]; + return -EBUSY; +} + +static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +{ + struct virtio_pci_device *vp_dev = to_vp_device(vdev); + const char *na...
2009 May 14
1
[PATCHv6 4/4] virtio_pci: optional MSI-X support
...I_CONFIG_VECTOR); + /* Flush the write out to device */ + ioread16(vp_dev->ioaddr + VIRTIO_MSI_CONFIG_VECTOR); + + vp_dev->msix_enabled = 0; + pci_disable_msix(vp_dev->pci_dev); + } +} + +static int vp_enable_msix(struct pci_dev *dev, struct msix_entry *entries, + int *options, int noptions) +{ + int i; + for (i = 0; i < noptions; ++i) + if (!pci_enable_msix(dev, entries, options[i])) + return options[i]; + return -EBUSY; +} + +static int vp_request_vectors(struct virtio_device *vdev, unsigned max_vqs) +{ + struct virtio_pci_device *vp_dev = to_vp_device(vdev); + const char *na...