summaryrefslogtreecommitdiffstats
path: root/libcnary/iterator.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcnary/iterator.c')
-rw-r--r--libcnary/iterator.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/libcnary/iterator.c b/libcnary/iterator.c
deleted file mode 100644
index 492a8ae..0000000
--- a/libcnary/iterator.c
+++ /dev/null
@@ -1,61 +0,0 @@
1/*
2 * iterator.c
3 *
4 * Created on: Mar 8, 2011
5 * Author: posixninja
6 *
7 * Copyright (c) 2011 Joshua Hill. All Rights Reserved.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#include <stdio.h>
25#include <stdlib.h>
26#include <string.h>
27
28#include "list.h"
29#include "object.h"
30#include "iterator.h"
31
32void iterator_destroy(iterator_t* iterator) {
33 if(iterator) {
34 free(iterator);
35 }
36}
37
38iterator_t* iterator_create(list_t* list) {
39 iterator_t* iterator = (iterator_t*) malloc(sizeof(iterator_t));
40 if(iterator == NULL) {
41 return NULL;
42 }
43 memset(iterator, '\0', sizeof(iterator_t));
44
45 if(list != NULL) {
46 // Create and bind to list
47
48 } else {
49 // Empty Iterator
50 }
51
52 return iterator;
53}
54
55object_t* iterator_next(iterator_t* iterator) {
56 return NULL;
57}
58
59int iterator_bind(iterator_t* iterator, list_t* list) {
60 return -1;
61}