summaryrefslogtreecommitdiff
path: root/rpmio/rpmfileutil.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-01-27 16:00:06 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-01-27 16:00:06 +0200
commitf0f392cce6c07fd4a41a392bc912a76238ee14eb (patch)
tree6f84932c0a4c134d3738058b5c631513109e064b /rpmio/rpmfileutil.h
parentc63f859b78b7465aed64a85635a3d1d5e0f7b9d7 (diff)
downloadlibrpm-tizen-f0f392cce6c07fd4a41a392bc912a76238ee14eb.tar.gz
librpm-tizen-f0f392cce6c07fd4a41a392bc912a76238ee14eb.tar.bz2
librpm-tizen-f0f392cce6c07fd4a41a392bc912a76238ee14eb.zip
Helper function for checking given suffix on path
Diffstat (limited to 'rpmio/rpmfileutil.h')
-rw-r--r--rpmio/rpmfileutil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpmio/rpmfileutil.h b/rpmio/rpmfileutil.h
index bd45d183f..ee90514e1 100644
--- a/rpmio/rpmfileutil.h
+++ b/rpmio/rpmfileutil.h
@@ -110,4 +110,12 @@ int rpmGlob(const char * patterns, int * argcPtr, char *** argvPtr);
*/
char * rpmEscapeSpaces(const char * s);
+/**
+ * Check if path (string) ends with given suffix
+ * @param path (path) string
+ * @param suffix suffix string to check for
+ * @return 1 if true, 0 otherwise
+ */
+int rpmFileHasSuffix(const char *path, const char *suffix);
+
#endif /* _RPMFILEUTIL_H */