Browse Source

Merge pull request #26 from Schafwolle/fb-support-cpp

support usage within C++
pull/28/head
Philipp Riederer 3 years ago
committed by GitHub
parent
commit
4633559720
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      ftpd.h
  2. 11
      vfs.h

9
ftpd.h

@ -34,6 +34,15 @@
#ifndef __FTPD_H__
#define __FTPD_H__
#ifdef __cplusplus
extern "C"
{
#endif
void ftpd_init(void);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __FTPD_H__ */

11
vfs.h

@ -1,4 +1,4 @@
/* Copyright (c) 2013, Philipp Tölke
/* Copyright (c) 2013, Philipp Tölke
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -27,6 +27,11 @@
#ifndef INCLUDE_VFS_H
#define INCLUDE_VFS_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <source/ff.h>
#include <stddef.h>
#include <stdlib.h>
@ -86,4 +91,8 @@ void vfs_closedir(vfs_dir_t* dir);
vfs_dir_t* vfs_opendir(vfs_t* vfs, const char* path);
struct tm* gmtime(const time_t *c_t);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* INCLUDE_VFS_H */

Loading…
Cancel
Save