Displaying 20 results from an estimated 34 matches for "get_property".
Did you mean:
set_property
2016 Feb 09
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...ddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake (revision 260200)
+++ cmake/modules/AddLLVM.cmake (working copy)
@@ -473,17 +473,23 @@
# It would be nice to verify that we have the dependencies for this library
# name, but using get_property(... SET) doesn't suffice to determine if a
# property has been set to an empty value.
- get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name})
-
- if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_STATIC AND NOT
ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
- set(llvm_libs LLVM)
+ if (LLVM_LINK_LLVM...
2006 Jan 26
2
Easy way to add properties to a model?
Hi,
I have a model (let''s say User) and I would like to add any number of
user-defined-settings to this Model. I created a UserSetting Model
with user_id, key and value. I connected them with has_many. I know
how to access these properties from a user but I would like some
methods like user.hasProperty? / user.getProperty ...
I think I know how to write these methods/finders myself but
2016 Feb 06
2
D16945: LLVM overhaul to avoid linking LLVM component libraries with libLLVM
...ix the simple
changes of...
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake (revision 259743)
+++ cmake/modules/AddLLVM.cmake (working copy)
@@ -475,13 +475,15 @@
# property has been set to an empty value.
get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name})
- if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_STATIC AND NOT
ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
- set(llvm_libs LLVM)
- else()
- llvm_map_components_to_libnames(llvm_libs
- ${ARG_LINK_COMPONENTS}
- ${LLVM_LINK_COMPONENTS}
- )
+ i...
2011 Aug 11
0
[PATCH] map nics-> bridges correctly in network pages, when cancelling nic configuration return to network page
...deletions(-)
diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index 4bd46d5..bddf6aa 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -774,6 +774,7 @@ class NodeConfigScreen():
try:
dev_interface = device.get_property("INTERFACE")
dev_vendor = device.get_property("ID_VENDOR_FROM_DATABASE")
+ dev_type = device.get_property("DEVTYPE")
try:
dev_vendor = dev_vendor.replace(",", "")...
2006 Aug 13
2
Arbitrary "Columns" for ActiveRecord
...any :properties, :dependent => :delete
end
|-----------------
|property_keys
|-----------------
| id (serial)
| key (varchar)
|-----------------
I''d like to access a model''s properties somewhat like:
Model.property_key = value # where property_key is dynamic/magic
OR
Model.get_property(key, value)
The problem here is, that with this set up, the way I have it set up, I
have Model#get_property set to this:
def get_property(key)
if key = PropertyKey.find_by_key(key)
self.properties.find(:first, :condition => ["property_key_id = ?",
key.id]).value
else
fa...
2006 Oct 10
3
Dynamic fields and inheritance
...The following code is a short test case that illustrates the problem I''m
having:
class Product < ActiveRecord::Base
acts_as_ferret :fields => [:name]
serialize :data
def self.data_properties (*properties)
properties.each do |property|
define_method(property) {self.get_property(property)}
define_method((property.to_s + ''='').to_sym) \
{|value| self.set_property(property, value)}
end
end
def get_property (property)
self[:data][property] if self[:data]
end
def set_property (property, value)
self[:data] = Hash.new unless s...
2014 Aug 23
3
[LLVMdev] [3.5 Release] Release Candidate 3 Now Available - CMake build error
> Run it through its phases and report any bugs you find!
[ 1495s] CMake Warning (dev) at projects/dragonegg/CMakeLists.txt:34 (get_target_property):
[ 1495s] Policy CMP0026 is not set: Disallow use of the LOCATION target property.
[ 1495s] Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
[ 1495s] command to set the policy and suppress this warning.
[ 1495s]
[ 1495s] The LOCATION property should no...
2009 Aug 12
4
TV-out modesetting DDX patches
[PATCH 1/3] kms: Don't hardcode the output properties
[PATCH 2/3] kms: Implement output->get_property when RandR1.3 is available.
[PATCH 3/3] kms: Add TV-out support
src/drmmode_display.c | 403 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 261 insertions(+), 142 deletions(-)
2007 Aug 09
0
Branch 'vivi' - 6 commits - configure.ac vivified/core vivified/dock vivified/Makefile.am vivified/ui
...ze_allocate (child, allocation);
+ }
+}
+
+static void
vivi_docklet_class_init (ViviDockletClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->dispose = vivi_docklet_dispose;
object_class->get_property = vivi_docklet_get_property;
@@ -95,6 +120,9 @@ vivi_docklet_class_init (ViviDockletClas
g_object_class_install_property (object_class, PROP_ICON,
g_param_spec_string ("icon", "icon", "name of the icon to display",
GTK_STOCK_MISSING_IMAGE, G_PARAM_READWRI...
2014 Jul 18
2
[LLVMdev] Fixing LLVM's CMake interface before LLVM3.5 release
...on in a well-defined manner. It works in
> add_custom_command so that should be sufficient for your example
> use case.
I've taken another look at this. For the simple example project [1]
I'm effectively doing this.
```
add_library(ReplaceGetGlobalID MODULE ReplaceGetGlobalID.cpp)
get_property(MODULE_FILE TARGET ReplaceGetGlobalID PROPERTY LOCATION)
configure_file(run.sh.in run.sh @ONLY)
```
where run.sh is a simple shell script to demonstrate how to invoke the
built library as a plug-in to the opt tool. With this CMP0026 policy
the above produces warnings.
After reading ``cmake --help...
2017 Jun 09
1
[ANNOUNCE] intel-gpu-tools 1.19
...wc to the fixture
igt/gem_shrink: Exercise concurrent calls to i915_gem_shrink()
Revert "kms_cursor_legacy: Add a burner thread to make basic-busy-* pass."
Daniel Stone (1):
tests/kms_*: Use correct DRM context version
Daniel Vetter (1):
tests/kms_properties: Add GET_PROPERTY ioctl sanity check
Eric Anholt (1):
igt/vc4_dmabuf_poll: Add a test for polling to wait for dmabuf fences.
Gabriel Krisman Bertazi (1):
kms_frontbuffer_tracking: Don't poke compressing status for old cpus
Harry Wentland (1):
tests/kms_setmode: Dynamic crtc/connector combina...
2014 Jul 16
5
[LLVMdev] Fixing LLVM's CMake interface before LLVM3.5 release
Hi All,
I've been playing [1] with the newly introduced CMake interface for
using exported LLVM CMake targets (e.g. the LLVMSupport library) in
CMake projects and although it works there are a few things I think we
should fix before the LLVM 3.5 release.
Here are the current issues I see that I'd like to discuss.
Just to clarify by "Targets" I mean targets in the CMake sense
2012 Mar 27
16
[PATCH 01/16] generator: Fix unescaped '<' and '>' in api descriptions
---
generator/generator_actions.ml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 68a7bf6..fcf363f 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -4664,7 +4664,7 @@ This creates an ext2/3/4 filesystem on C<device> with
an external journal on
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
...hs);
+ swfdec_movie_set_depth (movie, -16385 - movie->depth); /* don't ask me why... */
if (SWFDEC_IS_SPRITE_MOVIE (movie))
return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD);
@@ -739,6 +742,38 @@ swfdec_movie_render (SwfdecMovie *movie,
}
static void
+swfdec_movie_get_property (GObject *object, guint param_id, GValue *value,
+ GParamSpec * pspec)
+{
+ SwfdecMovie *movie = SWFDEC_MOVIE (object);
+
+ switch (param_id) {
+ case PROP_DEPTH:
+ g_value_set_int (value, movie->depth);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object,...
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...{
++ .name = "ibmvscsis",
++ .owner = THIS_MODULE,
++ }
++};
++
++static int get_system_info(void)
++{
++ struct device_node *rootdn;
++ const char *id, *model, *name;
++ unsigned int *num;
++
++ rootdn = find_path_device("/");
++ if (!rootdn)
++ return -ENOENT;
++
++ model = get_property(rootdn, "model", NULL);
++ id = get_property(rootdn, "system-id", NULL);
++ if (model && id)
++ snprintf(system_id, sizeof(system_id), "%s-%s", model, id);
++
++ name = get_property(rootdn, "ibm,partition-name", NULL);
++ if (name)
++ strncpy(partit...
2014 May 16
0
Wine release 1.7.19
The Wine development release 1.7.19 is now available.
What's new in this release (see below for details):
- New JSProxy DLL for automatic proxy configuration.
- More OLE Accessible Object support.
- Improvements to the XML writer.
- Fixes for various memory issues found by Valgrind.
- Initial headers for Direct2D support.
- Various bug fixes.
The source is available from the
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...;memory_since_gc >= context->memory_until_gc;
}
/**
@@ -417,10 +418,47 @@ enum {
LAST_SIGNAL
};
+enum {
+ PROP_0,
+ PROP_UNTIL_GC
+};
+
G_DEFINE_TYPE (SwfdecAsContext, swfdec_as_context, G_TYPE_OBJECT)
static guint signals[LAST_SIGNAL] = { 0, };
static void
+swfdec_as_context_get_property (GObject *object, guint param_id, GValue *value,
+ GParamSpec * pspec)
+{
+ SwfdecAsContext *context = SWFDEC_AS_CONTEXT (object);
+
+ switch (param_id) {
+ case PROP_UNTIL_GC:
+ g_value_set_ulong (value, (gulong) context->memory_until_gc);
+ break;
+ default:
+ G_OB...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...the new player.
+ *
+ * @see_also: SwfdecPlayer
+ */
+
+/**
+ * SwfdecGtkPlayer:
+ *
+ * The structure for the Swfdec Gtk player contains no public fields.
+ */
+
+/*** SWFDEC_GTK_PLAYER ***/
+
+G_DEFINE_TYPE (SwfdecGtkPlayer, swfdec_gtk_player, SWFDEC_TYPE_PLAYER)
+
+static void
+swfdec_gtk_player_get_property (GObject *object, guint param_id, GValue *value,
+ GParamSpec * pspec)
+{
+ SwfdecGtkPlayer *player = SWFDEC_GTK_PLAYER (object);
+
+ switch (param_id) {
+ case PROP_PLAYING:
+ g_value_set_boolean (value, player->source != NULL);
+ break;
+ case PROP_AUDIO:
+ g_value...
2017 Apr 07
34
[RFC 0/3] virtio-iommu: a paravirtualized IOMMU
This is the initial proposal for a paravirtualized IOMMU device using
virtio transport. It contains a description of the device, a Linux driver,
and a toy implementation in kvmtool. With this prototype, you can
translate DMA to guest memory from emulated (virtio), or passed-through
(VFIO) devices.
In its simplest form, implemented here, the device handles map/unmap
requests from the guest. Future
2017 Apr 07
34
[RFC 0/3] virtio-iommu: a paravirtualized IOMMU
This is the initial proposal for a paravirtualized IOMMU device using
virtio transport. It contains a description of the device, a Linux driver,
and a toy implementation in kvmtool. With this prototype, you can
translate DMA to guest memory from emulated (virtio), or passed-through
(VFIO) devices.
In its simplest form, implemented here, the device handles map/unmap
requests from the guest. Future