/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to src/LinkedList.h

  • Committer: Gustav Hatvigsson
  • Date: 2014-02-02 20:54:00 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140202205400-o7so4nzju52s7hkq
* added Modeline to (almost) all files.
* started work on the LinkedList implementation.
  TODO: linked_list_remove_current ()

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil
 
2
 * vi: set shiftwidth=2 tabstop=2 expandtab:
 
3
 * :indentSize=2:tabSize=2:noTabs=true:
 
4
 */
 
5
 
1
6
#ifndef __H_LINKED_LIST__
2
7
#define __H_LINKED_LIST__
3
8
 
53
58
 * @param free_data default:true, wether or not to free the data in the list
54
59
 *   as well as the list.
55
60
 */
56
 
void linked_list_free (LinkedList * self, bool free_data = true);
 
61
void linked_list_free (LinkedList * self, bool free_data);
57
62
 
58
63
/**
59
64
 * Add an item to a linked list.
109
114
 */
110
115
size_t linked_list_len (LinkedList * self);
111
116
 
 
117
/**
 
118
 * Romoves the cerrunt object useing the free function provided when
 
119
 * creating the list in linked_list_new ().
 
120
 */
 
121
void linked_list_remove_current (LinkedList * self);
 
122
 
112
123
#endif /* __H_LINKED_LIST__ */