[gegl] operations/external: Include source of op as metadata
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/external: Include source of op as metadata
- Date: Wed, 21 Jan 2015 01:31:06 +0000 (UTC)
commit e913a989aa58792a36e17799b8cf73929476354d
Author: Jon Nordby <jononor gmail com>
Date: Wed Jan 21 00:28:30 2015 +0100
operations/external: Include source of op as metadata
sed -i -e 's/^.*\"\(.*\.c\)\".*$/#define GEGL_OP_C_SOURCE \1/' operations/external/*.c
operations/external/ff-load.c | 3 +--
operations/external/jp2-load.c | 2 +-
operations/external/jpg-load.c | 2 +-
operations/external/jpg-save.c | 2 +-
operations/external/lcms-from-profile.c | 2 +-
operations/external/matting-levin.c | 2 +-
operations/external/npy-save.c | 2 +-
operations/external/openraw.c | 2 +-
operations/external/path.c | 2 +-
operations/external/pixbuf.c | 2 +-
operations/external/png-load.c | 2 +-
operations/external/png-save.c | 2 +-
operations/external/ppm-load.c | 2 +-
operations/external/ppm-save.c | 2 +-
operations/external/rgbe-load.c | 2 +-
operations/external/rgbe-save.c | 2 +-
operations/external/save-pixbuf.c | 2 +-
operations/external/sdl-display.c | 2 +-
operations/external/svg-load.c | 2 +-
operations/external/text.c | 2 +-
operations/external/v4l.c | 4 ++--
operations/external/vector-fill.c | 2 +-
operations/external/vector-stroke.c | 2 +-
operations/external/webp-load.c | 2 +-
operations/external/webp-save.c | 2 +-
25 files changed, 26 insertions(+), 27 deletions(-)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index c86ada5..d146f67 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -31,8 +31,7 @@ property_int (frame, _("Frame number"), 0)
#else
-#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "ff-load.c"
+#define GEGL_OP_C_SOURCE ff-load.c
#include "gegl-op.h"
#include <errno.h>
diff --git a/operations/external/jp2-load.c b/operations/external/jp2-load.c
index 049b38a..6ee8461 100644
--- a/operations/external/jp2-load.c
+++ b/operations/external/jp2-load.c
@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "")
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "jp2-load.c"
+#define GEGL_OP_C_SOURCE jp2-load.c
#include "gegl-op.h"
#include <stdio.h>
diff --git a/operations/external/jpg-load.c b/operations/external/jpg-load.c
index d1daa59..93bb14c 100644
--- a/operations/external/jpg-load.c
+++ b/operations/external/jpg-load.c
@@ -29,7 +29,7 @@ property_uri (uri, _("URI"), "")
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "jpg-load.c"
+#define GEGL_OP_C_SOURCE jpg-load.c
#include "gegl-op.h"
#include <stdio.h>
diff --git a/operations/external/jpg-save.c b/operations/external/jpg-save.c
index 4d2a3bf..8e0ec43 100644
--- a/operations/external/jpg-save.c
+++ b/operations/external/jpg-save.c
@@ -43,7 +43,7 @@ property_boolean (grayscale, _("Grayscale"), FALSE)
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "jpg-save.c"
+#define GEGL_OP_C_SOURCE jpg-save.c
#include "gegl-op.h"
#include <stdio.h>
diff --git a/operations/external/lcms-from-profile.c b/operations/external/lcms-from-profile.c
index 0db43f4..7410f9b 100644
--- a/operations/external/lcms-from-profile.c
+++ b/operations/external/lcms-from-profile.c
@@ -50,7 +50,7 @@ property_boolean (black_point_compensation, _("Black point compensation"),
#else
#define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE "lcms-from-profile.c"
+#define GEGL_OP_C_SOURCE lcms-from-profile.c
#include "gegl-op.h"
#include <lcms2.h>
diff --git a/operations/external/matting-levin.c b/operations/external/matting-levin.c
index cf84699..f4243be 100644
--- a/operations/external/matting-levin.c
+++ b/operations/external/matting-levin.c
@@ -49,7 +49,7 @@ property_int (active_levels, _("Active levels"), 2)
#else
#define GEGL_OP_COMPOSER
-#define GEGL_OP_C_FILE "matting-levin.c"
+#define GEGL_OP_C_SOURCE matting-levin.c
#include "gegl-op.h"
#include "gegl-debug.h"
diff --git a/operations/external/npy-save.c b/operations/external/npy-save.c
index adb2815..3a2dbda 100644
--- a/operations/external/npy-save.c
+++ b/operations/external/npy-save.c
@@ -34,7 +34,7 @@ property_file_path (path, _("File"), "")
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "npy-save.c"
+#define GEGL_OP_C_SOURCE npy-save.c
#include "gegl-op.h"
#include <stdio.h>
diff --git a/operations/external/openraw.c b/operations/external/openraw.c
index a599c60..2c0c509 100644
--- a/operations/external/openraw.c
+++ b/operations/external/openraw.c
@@ -41,7 +41,7 @@ typedef struct
GeglOperationSourceClass parent_class;
} GeglOpClass;
-#define GEGL_OP_C_FILE "openraw.c"
+#define GEGL_OP_C_SOURCE openraw.c
#include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_SOURCE)
diff --git a/operations/external/path.c b/operations/external/path.c
index 628bc94..5e1ab3f 100644
--- a/operations/external/path.c
+++ b/operations/external/path.c
@@ -57,7 +57,7 @@ property_path (d, _("Vector"), NULL)
#else
#define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE "path.c"
+#define GEGL_OP_C_SOURCE path.c
#include "gegl-plugin.h"
#include "gegl-path.h"
diff --git a/operations/external/pixbuf.c b/operations/external/pixbuf.c
index be7308a..023dcc2 100644
--- a/operations/external/pixbuf.c
+++ b/operations/external/pixbuf.c
@@ -27,7 +27,7 @@ property_pointer (pixbuf, _("Pixbuf"), _("GdkPixbuf to use"))
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "pixbuf.c"
+#define GEGL_OP_C_SOURCE pixbuf.c
#include "gegl-op.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
diff --git a/operations/external/png-load.c b/operations/external/png-load.c
index c84e9c5..fd28da4 100644
--- a/operations/external/png-load.c
+++ b/operations/external/png-load.c
@@ -32,7 +32,7 @@ property_uri (uri, _("URI"), "")
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "png-load.c"
+#define GEGL_OP_C_SOURCE png-load.c
#include "gegl-op.h"
#include <png.h>
diff --git a/operations/external/png-save.c b/operations/external/png-save.c
index 5340c00..ac58f07 100644
--- a/operations/external/png-save.c
+++ b/operations/external/png-save.c
@@ -35,7 +35,7 @@ property_int (bitdepth, _("Bitdepth"), 16)
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "png-save.c"
+#define GEGL_OP_C_SOURCE png-save.c
#include "gegl-op.h"
#include <png.h>
diff --git a/operations/external/ppm-load.c b/operations/external/ppm-load.c
index 6d4a9a5..fe6bf2d 100644
--- a/operations/external/ppm-load.c
+++ b/operations/external/ppm-load.c
@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "")
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "ppm-load.c"
+#define GEGL_OP_C_SOURCE ppm-load.c
#define MAX_CHARS_IN_ROW 500
#define CHANNEL_COUNT 3
diff --git a/operations/external/ppm-save.c b/operations/external/ppm-save.c
index 15c7671..ba5d6b9 100644
--- a/operations/external/ppm-save.c
+++ b/operations/external/ppm-save.c
@@ -33,7 +33,7 @@ property_int (bitdepth, _("Bitdepth"), 16)
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "ppm-save.c"
+#define GEGL_OP_C_SOURCE ppm-save.c
#define CHANNEL_COUNT 3
diff --git a/operations/external/rgbe-load.c b/operations/external/rgbe-load.c
index 2097354..2c07f45 100644
--- a/operations/external/rgbe-load.c
+++ b/operations/external/rgbe-load.c
@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "")
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "rgbe-load.c"
+#define GEGL_OP_C_SOURCE rgbe-load.c
#include "gegl-op.h"
diff --git a/operations/external/rgbe-save.c b/operations/external/rgbe-save.c
index db7857a..bfd0db9 100644
--- a/operations/external/rgbe-save.c
+++ b/operations/external/rgbe-save.c
@@ -29,7 +29,7 @@ property_file_path (path, _("File"), "")
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "rgbe-save.c"
+#define GEGL_OP_C_SOURCE rgbe-save.c
#include "gegl-op.h"
#include "rgbe/rgbe.h"
diff --git a/operations/external/save-pixbuf.c b/operations/external/save-pixbuf.c
index 6bdb97f..92b1aff 100644
--- a/operations/external/save-pixbuf.c
+++ b/operations/external/save-pixbuf.c
@@ -31,7 +31,7 @@ property_pointer (pixbuf, _("Pixbuf location"),
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "save-pixbuf.c"
+#define GEGL_OP_C_SOURCE save-pixbuf.c
#include "gegl-op.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
diff --git a/operations/external/sdl-display.c b/operations/external/sdl-display.c
index ead0c8c..1b66cb7 100644
--- a/operations/external/sdl-display.c
+++ b/operations/external/sdl-display.c
@@ -29,7 +29,7 @@ property_string (icon_title, _("Icon title"), "icon_title")
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "sdl-display.c"
+#define GEGL_OP_C_SOURCE sdl-display.c
#include "gegl-op.h"
#include <SDL.h>
diff --git a/operations/external/svg-load.c b/operations/external/svg-load.c
index 281d4b4..058c7d4 100644
--- a/operations/external/svg-load.c
+++ b/operations/external/svg-load.c
@@ -34,7 +34,7 @@ property_int (height, _("Height"), -1)
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "svg-load.c"
+#define GEGL_OP_C_SOURCE svg-load.c
#include "gegl-op.h"
#include <cairo.h>
diff --git a/operations/external/text.c b/operations/external/text.c
index b448c72..6d4cd13 100644
--- a/operations/external/text.c
+++ b/operations/external/text.c
@@ -80,7 +80,7 @@ typedef struct
GeglOperationSourceClass parent_class;
} GeglOpClass;
-#define GEGL_OP_C_FILE "text.c"
+#define GEGL_OP_C_SOURCE text.c
#include "gegl-op.h"
GEGL_DEFINE_DYNAMIC_OPERATION (GEGL_TYPE_OPERATION_SOURCE)
diff --git a/operations/external/v4l.c b/operations/external/v4l.c
index 3235466..619e48b 100644
--- a/operations/external/v4l.c
+++ b/operations/external/v4l.c
@@ -41,12 +41,12 @@ property_int (fps, _("FPS"), 0)
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "v4l.c"
+#define GEGL_OP_C_SOURCE v4l.c
#include "gegl-op.h"
#include "v4lutils/v4lutils.h"
-#include "v4lutils/v4lutils.c"
+#define GEGL_OP_C_SOURCE v4lutils/v4lutils.c
typedef struct
{
diff --git a/operations/external/vector-fill.c b/operations/external/vector-fill.c
index 42e7da5..21ec271 100644
--- a/operations/external/vector-fill.c
+++ b/operations/external/vector-fill.c
@@ -43,7 +43,7 @@ property_path (d, _("Vector"), NULL)
#else
#define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE "vector-fill.c"
+#define GEGL_OP_C_SOURCE vector-fill.c
#include "gegl-plugin.h"
diff --git a/operations/external/vector-stroke.c b/operations/external/vector-stroke.c
index 85a8070..8e677ee 100644
--- a/operations/external/vector-stroke.c
+++ b/operations/external/vector-stroke.c
@@ -44,7 +44,7 @@ property_path (d, _("Vector"), NULL)
#else
#define GEGL_OP_FILTER
-#define GEGL_OP_C_FILE "vector-stroke.c"
+#define GEGL_OP_C_SOURCE vector-stroke.c
#include "gegl-plugin.h"
diff --git a/operations/external/webp-load.c b/operations/external/webp-load.c
index 323c15d..17d35ff 100644
--- a/operations/external/webp-load.c
+++ b/operations/external/webp-load.c
@@ -28,7 +28,7 @@ property_file_path (path, _("File"), "")
#else
#define GEGL_OP_SOURCE
-#define GEGL_OP_C_FILE "webp-load.c"
+#define GEGL_OP_C_SOURCE webp-load.c
#include "gegl-op.h"
#include <webp/decode.h>
diff --git a/operations/external/webp-save.c b/operations/external/webp-save.c
index ebc9dde..1433025 100644
--- a/operations/external/webp-save.c
+++ b/operations/external/webp-save.c
@@ -31,7 +31,7 @@ property_int (quality, _("Quality"), 90)
#else
#define GEGL_OP_SINK
-#define GEGL_OP_C_FILE "webp-save.c"
+#define GEGL_OP_C_SOURCE webp-save.c
#include "gegl-op.h"
#include <webp/encode.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]