Revision: 1096
Author: phrakt
Date: Tue May 11 18:40:03 2010
Log: add the function http_entity_gettype() to get the type of an entity
structure
http://code.google.com/p/canopy-httpd/source/detail?r=1096
Modified:
/trunk/src/lib/http/entity.c
/trunk/src/lib/http/entity.h
=======================================
--- /trunk/src/lib/http/entity.c Tue Apr 20 20:51:21 2010
+++ /trunk/src/lib/http/entity.c Tue May 11 18:40:03 2010
@@ -221,3 +221,14 @@
return (buf);
}
+
+/*
+ * http_entity_gettype()
+ *
+ * Returns the type of the entity <ent>.
+ */
+enum http_ent_type
+http_entity_gettype(http_ent_t *ent)
+{
+ return (ent->ent_type);
+}
=======================================
--- /trunk/src/lib/http/entity.h Mon Aug 31 19:45:42 2009
+++ /trunk/src/lib/http/entity.h Tue May 11 18:40:03 2010
@@ -71,10 +71,11 @@
};
-http_ent_t* http_entity_alloc (enum http_ent_type, const char *, int);
-int http_entity_stat (http_ent_t *);
-ssize_t http_entity_read (http_ent_t *, off_t, void *, size_t);
-void http_entity_free (http_ent_t *);
-char* http_entity_tag (http_ent_t *, char *, size_t);
+http_ent_t* http_entity_alloc (enum http_ent_type, const char *,
int);
+int http_entity_stat (http_ent_t *);
+ssize_t http_entity_read (http_ent_t *, off_t, void *,
size_t);
+void http_entity_free (http_ent_t *);
+char* http_entity_tag (http_ent_t *, char *, size_t);
+enum http_ent_type http_entity_gettype (http_ent_t *);
#endif /* _HTTP_ENTITY_H_ */
--
You received this message because you are subscribed to the Google Groups "Canopy Web Server Source Changes" group.
To post to this group, send email to
canopy-s...@googlegroups.com.
To unsubscribe from this group, send email to
canopy-srcchan...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/canopy-srcchanges?hl=en.