summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests_generated.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-05-12 22:54:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-22 17:36:23 +0200
commit58229439447d5617913a5a2e173b78105c694842 (patch)
tree89dab51159dcd56df2b0b4cf0f7491e9b8b9751b /src/tests/sbus_codegen_tests_generated.h
parent90e04eae7e54ec892a6f239783df94dab5d1ed9a (diff)
downloadsssd-58229439447d5617913a5a2e173b78105c694842.tar.gz
sssd-58229439447d5617913a5a2e173b78105c694842.tar.xz
sssd-58229439447d5617913a5a2e173b78105c694842.zip
SBUS: Return empty string if a string getter returns NULL
In line with getters never returning errors, a getter should return an empty string instead of NULL in case a string-like property in SSSD is not set. Reviewed-by: Stef Walter <stefw@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/tests/sbus_codegen_tests_generated.h')
-rw-r--r--src/tests/sbus_codegen_tests_generated.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests_generated.h b/src/tests/sbus_codegen_tests_generated.h
index 9599091dd..7dc817edf 100644
--- a/src/tests/sbus_codegen_tests_generated.h
+++ b/src/tests/sbus_codegen_tests_generated.h
@@ -35,6 +35,7 @@
#define TEST_PILOT_DOUBLE "double"
#define TEST_PILOT_STRING "string"
#define TEST_PILOT_OBJECT_PATH "object_path"
+#define TEST_PILOT_NULL_STRING "null_string"
#define TEST_PILOT_BYTE_ARRAY "byte_array"
#define TEST_PILOT_INT16_ARRAY "int16_array"
#define TEST_PILOT_UINT16_ARRAY "uint16_array"
@@ -96,6 +97,7 @@ struct test_pilot {
void (*test_pilot_get_double)(struct sbus_request *, void *data, double *);
void (*test_pilot_get_string)(struct sbus_request *, void *data, const char * *);
void (*test_pilot_get_object_path)(struct sbus_request *, void *data, const char * *);
+ void (*test_pilot_get_null_string)(struct sbus_request *, void *data, const char * *);
void (*test_pilot_get_byte_array)(struct sbus_request *, void *data, uint8_t * *, int *);
void (*test_pilot_get_int16_array)(struct sbus_request *, void *data, int16_t * *, int *);
void (*test_pilot_get_uint16_array)(struct sbus_request *, void *data, uint16_t * *, int *);