diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-15 19:10:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-15 19:10:54 +0000 |
commit | 79c795f10b996f8f9a8d03110283c6c8b2ecd0c7 (patch) | |
tree | b49cce981cf55099c3ab758eaf96a9bcf3406643 /src | |
parent | 94a7d55c9473299c471bce218e68b90847d961b8 (diff) | |
download | gnunet-79c795f10b996f8f9a8d03110283c6c8b2ecd0c7.tar.gz gnunet-79c795f10b996f8f9a8d03110283c6c8b2ecd0c7.zip |
-indenting
Diffstat (limited to 'src')
-rw-r--r-- | src/include/gnunet_fs_service.h | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index f9c56db64..26757e558 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -1582,8 +1582,9 @@ struct GNUNET_FS_ProgressInfo | |||
1582 | * will be passed to future callbacks in the respective | 1582 | * will be passed to future callbacks in the respective |
1583 | * field in the `struct GNUNET_FS_ProgressInfo`. | 1583 | * field in the `struct GNUNET_FS_ProgressInfo`. |
1584 | */ | 1584 | */ |
1585 | typedef void *(*GNUNET_FS_ProgressCallback) (void *cls, | 1585 | typedef void * |
1586 | const struct GNUNET_FS_ProgressInfo *info); | 1586 | (*GNUNET_FS_ProgressCallback) (void *cls, |
1587 | const struct GNUNET_FS_ProgressInfo *info); | ||
1587 | 1588 | ||
1588 | 1589 | ||
1589 | /** | 1590 | /** |
@@ -1703,9 +1704,9 @@ struct GNUNET_FS_Handle; | |||
1703 | */ | 1704 | */ |
1704 | struct GNUNET_FS_Handle * | 1705 | struct GNUNET_FS_Handle * |
1705 | GNUNET_FS_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 1706 | GNUNET_FS_start (const struct GNUNET_CONFIGURATION_Handle *cfg, |
1706 | const char *client_name, | 1707 | const char *client_name, |
1707 | GNUNET_FS_ProgressCallback upcb, | 1708 | GNUNET_FS_ProgressCallback upcb, |
1708 | void *upcb_cls, | 1709 | void *upcb_cls, |
1709 | enum GNUNET_FS_Flags flags, | 1710 | enum GNUNET_FS_Flags flags, |
1710 | ...); | 1711 | ...); |
1711 | 1712 | ||
@@ -1738,17 +1739,15 @@ GNUNET_FS_stop (struct GNUNET_FS_Handle *h); | |||
1738 | * this entry from the directory, #GNUNET_SYSERR | 1739 | * this entry from the directory, #GNUNET_SYSERR |
1739 | * to abort the iteration | 1740 | * to abort the iteration |
1740 | */ | 1741 | */ |
1741 | typedef int (*GNUNET_FS_FileInformationProcessor) (void *cls, | 1742 | typedef int |
1742 | struct | 1743 | (*GNUNET_FS_FileInformationProcessor) (void *cls, |
1743 | GNUNET_FS_FileInformation * | 1744 | struct GNUNET_FS_FileInformation *fi, |
1744 | fi, uint64_t length, | 1745 | uint64_t length, |
1745 | struct | 1746 | struct GNUNET_CONTAINER_MetaData *meta, |
1746 | GNUNET_CONTAINER_MetaData * | 1747 | struct GNUNET_FS_Uri ** uri, |
1747 | meta, | 1748 | struct GNUNET_FS_BlockOptions *bo, |
1748 | struct GNUNET_FS_Uri ** uri, | 1749 | int *do_index, |
1749 | struct GNUNET_FS_BlockOptions | 1750 | void **client_info); |
1750 | * bo, int *do_index, | ||
1751 | void **client_info); | ||
1752 | 1751 | ||
1753 | 1752 | ||
1754 | /** | 1753 | /** |
@@ -1805,13 +1804,10 @@ struct GNUNET_FS_FileInformation * | |||
1805 | GNUNET_FS_file_information_create_from_file (struct GNUNET_FS_Handle *h, | 1804 | GNUNET_FS_file_information_create_from_file (struct GNUNET_FS_Handle *h, |
1806 | void *client_info, | 1805 | void *client_info, |
1807 | const char *filename, | 1806 | const char *filename, |
1808 | const struct GNUNET_FS_Uri | 1807 | const struct GNUNET_FS_Uri *keywords, |
1809 | *keywords, | 1808 | const struct GNUNET_CONTAINER_MetaData *meta, |
1810 | const struct | ||
1811 | GNUNET_CONTAINER_MetaData *meta, | ||
1812 | int do_index, | 1809 | int do_index, |
1813 | const struct GNUNET_FS_BlockOptions | 1810 | const struct GNUNET_FS_BlockOptions *bo); |
1814 | *bo); | ||
1815 | 1811 | ||
1816 | 1812 | ||
1817 | /** | 1813 | /** |
@@ -1832,15 +1828,13 @@ GNUNET_FS_file_information_create_from_file (struct GNUNET_FS_Handle *h, | |||
1832 | */ | 1828 | */ |
1833 | struct GNUNET_FS_FileInformation * | 1829 | struct GNUNET_FS_FileInformation * |
1834 | GNUNET_FS_file_information_create_from_data (struct GNUNET_FS_Handle *h, | 1830 | GNUNET_FS_file_information_create_from_data (struct GNUNET_FS_Handle *h, |
1835 | void *client_info, uint64_t length, | 1831 | void *client_info, |
1832 | uint64_t length, | ||
1836 | void *data, | 1833 | void *data, |
1837 | const struct GNUNET_FS_Uri | 1834 | const struct GNUNET_FS_Uri *keywords, |
1838 | *keywords, | 1835 | const struct GNUNET_CONTAINER_MetaData *meta, |
1839 | const struct | ||
1840 | GNUNET_CONTAINER_MetaData *meta, | ||
1841 | int do_index, | 1836 | int do_index, |
1842 | const struct GNUNET_FS_BlockOptions | 1837 | const struct GNUNET_FS_BlockOptions *bo); |
1843 | *bo); | ||
1844 | 1838 | ||
1845 | 1839 | ||
1846 | /** | 1840 | /** |
@@ -1863,8 +1857,12 @@ GNUNET_FS_file_information_create_from_data (struct GNUNET_FS_Handle *h, | |||
1863 | * @param emsg location for the reader to store an error message | 1857 | * @param emsg location for the reader to store an error message |
1864 | * @return number of bytes written, usually @a max, 0 on error | 1858 | * @return number of bytes written, usually @a max, 0 on error |
1865 | */ | 1859 | */ |
1866 | typedef size_t (*GNUNET_FS_DataReader) (void *cls, uint64_t offset, size_t max, | 1860 | typedef size_t |
1867 | void *buf, char **emsg); | 1861 | (*GNUNET_FS_DataReader) (void *cls, |
1862 | uint64_t offset, | ||
1863 | size_t max, | ||
1864 | void *buf, | ||
1865 | char **emsg); | ||
1868 | 1866 | ||
1869 | 1867 | ||
1870 | /** | 1868 | /** |
@@ -2047,9 +2045,10 @@ GNUNET_FS_publish_stop (struct GNUNET_FS_PublishContext *pc); | |||
2047 | * @param uri URI under which the block is now available, NULL on error | 2045 | * @param uri URI under which the block is now available, NULL on error |
2048 | * @param emsg error message, NULL on success | 2046 | * @param emsg error message, NULL on success |
2049 | */ | 2047 | */ |
2050 | typedef void (*GNUNET_FS_PublishContinuation) (void *cls, | 2048 | typedef void |
2051 | const struct GNUNET_FS_Uri *uri, | 2049 | (*GNUNET_FS_PublishContinuation) (void *cls, |
2052 | const char *emsg); | 2050 | const struct GNUNET_FS_Uri *uri, |
2051 | const char *emsg); | ||
2053 | 2052 | ||
2054 | 2053 | ||
2055 | /** | 2054 | /** |
@@ -2140,8 +2139,10 @@ GNUNET_FS_publish_sks_cancel (struct GNUNET_FS_PublishSksContext *psc); | |||
2140 | * @param file_id hash of the contents of the indexed file | 2139 | * @param file_id hash of the contents of the indexed file |
2141 | * @return #GNUNET_OK to continue iteration, #GNUNET_SYSERR to abort | 2140 | * @return #GNUNET_OK to continue iteration, #GNUNET_SYSERR to abort |
2142 | */ | 2141 | */ |
2143 | typedef int (*GNUNET_FS_IndexedFileProcessor) (void *cls, const char *filename, | 2142 | typedef int |
2144 | const struct GNUNET_HashCode * file_id); | 2143 | (*GNUNET_FS_IndexedFileProcessor) (void *cls, |
2144 | const char *filename, | ||
2145 | const struct GNUNET_HashCode *file_id); | ||
2145 | 2146 | ||
2146 | 2147 | ||
2147 | /** | 2148 | /** |