summaryrefslogtreecommitdiffstats
path: root/libmsi/where.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-17 20:16:15 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-17 20:16:19 +0100
commit6556c61586d79ee0ae599248f25d591d99da8a97 (patch)
tree5392d273386dbf868e7ca2cb9b680c700bb7a4e0 /libmsi/where.c
parente9cf5c17fe55779628503718139f3048b6eab5d2 (diff)
downloadmsitools-6556c61586d79ee0ae599248f25d591d99da8a97.tar.gz
msitools-6556c61586d79ee0ae599248f25d591d99da8a97.tar.xz
msitools-6556c61586d79ee0ae599248f25d591d99da8a97.zip
Remove LIBMSI_RESULT_NO_MORE_ITEMS from API
Raising an error for indicating the end of the results is really inconvenient, it's like throwing an exception for something quite normal... The user can still make a distinction when there is an error if the GError is set.
Diffstat (limited to 'libmsi/where.c')
-rw-r--r--libmsi/where.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmsi/where.c b/libmsi/where.c
index fac7fa1..f0403bf 100644
--- a/libmsi/where.c
+++ b/libmsi/where.c
@@ -107,7 +107,7 @@ static unsigned init_reorder(LibmsiWhereView *wv)
static inline unsigned find_row(LibmsiWhereView *wv, unsigned row, unsigned *(values[]))
{
if (row >= wv->row_count)
- return LIBMSI_RESULT_NO_MORE_ITEMS;
+ return NO_MORE_ITEMS;
*values = wv->reorder[row]->values;
@@ -927,7 +927,7 @@ static unsigned where_view_find_matching_rows( LibmsiView *view, unsigned col,
}
}
- return LIBMSI_RESULT_NO_MORE_ITEMS;
+ return NO_MORE_ITEMS;
}
static unsigned where_view_sort(LibmsiView *view, column_info *columns)