Skip to content

Commit

Permalink
zsync.h: add include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
merlino authored and gianm committed Jan 17, 2012
1 parent 72e5b58 commit 02ca8a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c/libzsync/zsync.h
Expand Up @@ -13,6 +13,9 @@
* COPYING file for details. * COPYING file for details.
*/ */


#ifndef ZSYNC_ZSYNC_H
#define ZSYNC_ZSYNC_H

struct zsync_state; struct zsync_state;


/* zsync_begin - load a zsync file and return data structure to use for the rest of the process. /* zsync_begin - load a zsync file and return data structure to use for the rest of the process.
Expand Down Expand Up @@ -95,3 +98,4 @@ void zsync_end_receive(struct zsync_receiver* zr);
* Returns 0 for success; if not, you should not submit more data. */ * Returns 0 for success; if not, you should not submit more data. */
int zsync_receive_data(struct zsync_receiver* zr, const unsigned char* buf, off_t offset, size_t len); int zsync_receive_data(struct zsync_receiver* zr, const unsigned char* buf, off_t offset, size_t len);


#endif

0 comments on commit 02ca8a1

Please sign in to comment.