[aravis] all: use _create_ instead of _new_ in function names that are not constructors.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] all: use _create_ instead of _new_ in function names that are not constructors.
- Date: Sun, 26 Sep 2010 16:59:35 +0000 (UTC)
commit 6f128db427d881e41763032407b9fbf1f5c133ad
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sun Sep 26 18:58:22 2010 +0200
all: use _create_ instead of _new_ in function names that are not constructors.
docs/reference/aravis/aravis-sections.txt | 4 ++--
src/arvcamera.c | 2 +-
src/arvinterface.c | 4 ++--
src/arvinterface.h | 2 +-
src/arvsystem.c | 6 +++---
src/arvsystem.h | 2 +-
tests/arvtest.c | 2 +-
7 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/docs/reference/aravis/aravis-sections.txt b/docs/reference/aravis/aravis-sections.txt
index 4792e00..5a71433 100644
--- a/docs/reference/aravis/aravis-sections.txt
+++ b/docs/reference/aravis/aravis-sections.txt
@@ -69,7 +69,7 @@ ArvBufferClass
<TITLE>ArvInterface</TITLE>
ArvInterface
arv_interface_update_device_list
-arv_interface_new_device
+arv_interface_create_device
<SUBSECTION Standard>
ARV_INTERFACE
ARV_IS_INTERFACE
@@ -125,7 +125,7 @@ ArvGcPortClass
<FILE>arvdevice</FILE>
<TITLE>ArvDevice</TITLE>
ArvDevice
-arv_new_device
+arv_create_device
arv_device_create_stream
arv_device_read_memory
arv_device_write_memory
diff --git a/src/arvcamera.c b/src/arvcamera.c
index 01ee8b3..f90d7e0 100644
--- a/src/arvcamera.c
+++ b/src/arvcamera.c
@@ -564,7 +564,7 @@ arv_camera_new (const char *name)
ArvCameraVendor vendor;
const char *vendor_name;
- device = arv_new_device (name);
+ device = arv_create_device (name);
if (!ARV_IS_DEVICE (device))
return NULL;
diff --git a/src/arvinterface.c b/src/arvinterface.c
index d46f945..20199ca 100644
--- a/src/arvinterface.c
+++ b/src/arvinterface.c
@@ -28,7 +28,7 @@
* list of the available devices and help to instantiate the corresponding
* #ArvDevice object. If user already knows he name of the device, it should
* not worry about this class and just use arv_camera_new() or
- * arv_new_device().
+ * arv_create_device().
*/
#include <arvinterface.h>
@@ -44,7 +44,7 @@ arv_interface_update_device_list (ArvInterface *interface)
}
ArvDevice *
-arv_interface_new_device (ArvInterface *interface, const char *name)
+arv_interface_create_device (ArvInterface *interface, const char *name)
{
ArvDevice *device;
diff --git a/src/arvinterface.h b/src/arvinterface.h
index e0bc85c..caff81b 100644
--- a/src/arvinterface.h
+++ b/src/arvinterface.h
@@ -50,7 +50,7 @@ struct _ArvInterfaceClass {
GType arv_interface_get_type (void);
void arv_interface_update_device_list (ArvInterface *interface);
-ArvDevice * arv_interface_new_device (ArvInterface *interface, const char *name);
+ArvDevice * arv_interface_create_device (ArvInterface *interface, const char *name);
G_END_DECLS
diff --git a/src/arvsystem.c b/src/arvsystem.c
index 67067a0..41eef6c 100644
--- a/src/arvsystem.c
+++ b/src/arvsystem.c
@@ -26,18 +26,18 @@
#include <arvdevice.h>
ArvDevice *
-arv_new_device (const char *name)
+arv_create_device (const char *name)
{
ArvInterface *interface;
ArvDevice *device;
interface = arv_fake_interface_get_instance ();
- device = arv_interface_new_device (interface, name);
+ device = arv_interface_create_device (interface, name);
if (device != NULL)
return device;
interface = arv_gv_interface_get_instance ();
- device = arv_interface_new_device (interface, name);
+ device = arv_interface_create_device (interface, name);
if (device != NULL)
return device;
diff --git a/src/arvsystem.h b/src/arvsystem.h
index e89ff28..128522b 100644
--- a/src/arvsystem.h
+++ b/src/arvsystem.h
@@ -27,7 +27,7 @@
G_BEGIN_DECLS
-ArvDevice * arv_new_device (const char *name);
+ArvDevice * arv_create_device (const char *name);
G_END_DECLS
diff --git a/tests/arvtest.c b/tests/arvtest.c
index 77b1fbc..6f85b68 100644
--- a/tests/arvtest.c
+++ b/tests/arvtest.c
@@ -83,7 +83,7 @@ main (int argc, char **argv)
else
g_print ("Looking for camera '%s'\n", arv_option_camera_name);
- device = arv_new_device (arv_option_camera_name);
+ device = arv_create_device (arv_option_camera_name);
if (device != NULL) {
ArvGc *genicam;
ArvGcNode *node;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]