Add const where we don't modify pointer
authorenglebass <englebass>
Sat, 13 Feb 2010 19:06:16 +0000 (19:06 +0000)
committerenglebass <englebass@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 13 Feb 2010 19:06:16 +0000 (19:06 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@46153 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/include/eina_strbuf.h
src/lib/eina_strbuf.c

index 8186665..bf2664d 100644 (file)
@@ -18,9 +18,9 @@ EAPI Eina_Bool eina_strbuf_insert(Eina_Strbuf *buf, const char *str,
                                 size_t pos) EINA_ARG_NONNULL(1, 2);
 #define eina_strbuf_prepend(buf, str) eina_strbuf_insert(buf, str, 0)
 EAPI Eina_Bool eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int end) EINA_ARG_NONNULL(1);
-EAPI const char *eina_strbuf_string_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
+EAPI const char *eina_strbuf_string_get(const Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
 EAPI char *eina_strbuf_string_steal(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
-EAPI size_t eina_strbuf_length_get(Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
+EAPI size_t eina_strbuf_length_get(const Eina_Strbuf *buf) EINA_ARG_NONNULL(1);
 EAPI Eina_Bool eina_strbuf_replace(Eina_Strbuf *buf, const char *str,
                                  const char *with, unsigned int n) EINA_ARG_NONNULL(1, 2, 3);
 #define eina_strbuf_replace_first(buf, str, with) \
index 56fd4b4..6c1b2e5 100644 (file)
@@ -263,7 +263,7 @@ eina_strbuf_remove(Eina_Strbuf *buf, unsigned int start, unsigned int end)
  * the Eina_Strbuf is modified.
  */
 EAPI const char *
-eina_strbuf_string_get(Eina_Strbuf *buf)
+eina_strbuf_string_get(const Eina_Strbuf *buf)
 {
    EINA_MAGIC_CHECK_STRBUF(buf, NULL);
 
@@ -291,7 +291,7 @@ eina_strbuf_string_steal(Eina_Strbuf *buf)
  * @param buf the buffer
  */
 EAPI size_t
-eina_strbuf_length_get(Eina_Strbuf *buf)
+eina_strbuf_length_get(const Eina_Strbuf *buf)
 {
    EINA_MAGIC_CHECK_STRBUF(buf, 0);