⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thread_ftp.h

📁 Coriander is a GUI for controlling a Digital Camera (in the sense of the IIDC specs issued by the 1
💻 H
字号:
/* * Copyright (C) 2000-2003 Damien Douxchamps  <ddouxchamps@users.sf.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#ifndef __THREAD_FTP_H__#define __THREAD_FTP_H__typedef enum{  FTP_SCRATCH_SEQUENTIAL=0,  FTP_SCRATCH_OVERWRITE} ftp_scratch_t; typedef enum{  FTP_TAG_DATE=0,  FTP_TAG_NUMBER} ftp_tag_t; typedef struct{   /* Define thread variables here.     This data will only de available to the thread.*/  pthread_mutex_t    mutex_cancel;  int                cancel_req;  char               filename[STRING_SIZE];  char               filename_ext[STRING_SIZE];  char               address[STRING_SIZE];  char               password[STRING_SIZE];  char               user[STRING_SIZE];  char               path[STRING_SIZE];  long int           period;  long int           counter;  long int           imlib_buffer_size;  unsigned char*     buffer;  int                scratch;  int                datenum;#ifdef HAVE_FTPLIB  netbuf             *ftp_handle;#endif} ftpthread_info_t;gintFtpStartThread(camera_t* cam);void*FtpCleanupThread(void* arg);void*FtpThread(void* arg);gintFtpStopThread(camera_t* cam);voidFtpThreadCheckParams(chain_t *ftp_service);#ifdef HAVE_FTPLIBgbooleanOpenFtpConnection(ftpthread_info_t* info);gbooleanFtpPutFrame(char *filename, GdkImlibImage *im, ftpthread_info_t* info);voidCloseFtpConnection(netbuf *ftp_handle);gbooleanCheckFtpConnection(ftpthread_info_t* info);#endif#endif // __THREAD_FTP_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -