summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-04-02 17:39:32 +0200
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-04-02 17:39:32 +0200
commitaffea724d1810410186b10c93c64b7a8ddbe7aca (patch)
treeae605f8c39bd4092233175de34b6d0b2f16481f4 /include
parent02972a88ac293356bcb4b03c8c6cd79735f7288a (diff)
parent9fed4c5bdb4928c7f5c73e85888de54672cd4c56 (diff)
downloadouroboros-affea724d1810410186b10c93c64b7a8ddbe7aca.tar.gz
ouroboros-affea724d1810410186b10c93c64b7a8ddbe7aca.zip
Merged in sandervrijders/ouroboros/be (pull request #52)
Strdup changes
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/common.h2
-rw-r--r--include/ouroboros/utils.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/ouroboros/common.h b/include/ouroboros/common.h
index 7114ed73..658c3618 100644
--- a/include/ouroboros/common.h
+++ b/include/ouroboros/common.h
@@ -45,7 +45,7 @@ struct qos_spec {
/* FIXME: What should be configurable in the DIF? */
struct dif_config {
/* general data */
- struct qos_spec * qosspecs;
+ char * dif_name;
/* TODO: efficient policies */
diff --git a/include/ouroboros/utils.h b/include/ouroboros/utils.h
index 0e50c039..2eaccae9 100644
--- a/include/ouroboros/utils.h
+++ b/include/ouroboros/utils.h
@@ -25,3 +25,6 @@
* need when represented as a string
*/
int n_digits(unsigned i);
+
+/* Returns a copy of the source string */
+char * strdup(const char * src);