The examples no longer have an include path pointing to the private source dir

but instead uses its own config.h file, that now is included first to make
large file magic have an effect.
This commit is contained in:
Daniel Stenberg 2007-07-31 11:00:29 +00:00
parent 15e0f56d01
commit 68c86e2c4c
15 changed files with 30 additions and 29 deletions

View File

@ -10,7 +10,7 @@ noinst_PROGRAMS = ssh2 \
sftp_RW_nonblock \
sftpdir sftpdir_nonblock
INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src
INCLUDES = -I$(top_srcdir)/include
LDADD = $(top_builddir)/src/libssh2.la
ssh2_SOURCES = ssh2.c

View File

@ -1,11 +1,11 @@
/*
* $Id: scp.c,v 1.8 2007/07/14 21:24:38 bagder Exp $
* $Id: scp.c,v 1.9 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do a simple SCP transfer.
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,11 +1,11 @@
/*
* $Id: scp_nonblock.c,v 1.7 2007/07/14 21:24:38 bagder Exp $
* $Id: scp_nonblock.c,v 1.8 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SCP transfers in a non-blocking manner.
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,11 +1,11 @@
/*
* $Id: scp_write.c,v 1.3 2007/07/14 21:24:38 bagder Exp $
* $Id: scp_write.c,v 1.4 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do a simple SCP transfer.
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,11 +1,12 @@
/*
* $Id: scp_write_nonblock.c,v 1.5 2007/07/14 21:24:38 bagder Exp $
* $Id: scp_write_nonblock.c,v 1.6 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do a simple SCP transfer.
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp.c,v 1.11 2007/07/22 02:15:31 gknauf Exp $
* $Id: sftp.c,v 1.12 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP transfers.
*
@ -9,9 +9,9 @@
* "sftp 192.168.0.1 user password /tmp/secrets -p|-i|-k"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_RW_nonblock.c,v 1.8 2007/07/14 21:24:38 bagder Exp $
* $Id: sftp_RW_nonblock.c,v 1.9 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP transfers in a non-blocking manner.
*
@ -9,9 +9,9 @@
* Using the SFTP server running on 127.0.0.1
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_mkdir.c,v 1.5 2007/07/14 21:24:38 bagder Exp $
* $Id: sftp_mkdir.c,v 1.6 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP mkdir
*
@ -9,9 +9,9 @@
* "sftp 192.168.0.1 user password /tmp/sftp_mkdir"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_mkdir_nonblock.c,v 1.7 2007/07/14 21:24:38 bagder Exp $
* $Id: sftp_mkdir_nonblock.c,v 1.8 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP non-blocking mkdir.
*
@ -9,9 +9,9 @@
* "sftp 192.168.0.1 user password /tmp/sftp_write_nonblock.c"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_nonblock.c,v 1.11 2007/07/14 21:24:38 bagder Exp $
* $Id: sftp_nonblock.c,v 1.12 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP non-blocking transfers.
*
@ -9,9 +9,9 @@
* "sftp 192.168.0.1 user password /tmp/secrets"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_write.c,v 1.6 2007/07/14 21:24:38 bagder Exp $
* $Id: sftp_write.c,v 1.7 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP write transfers.
*
@ -9,9 +9,9 @@
* "sftp 192.168.0.1 user password sftp_write.c /tmp/secrets"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftp_write_nonblock.c,v 1.8 2007/07/14 21:24:38 bagder Exp $
* $Id: sftp_write_nonblock.c,v 1.9 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SFTP non-blocking write transfers.
*
@ -9,9 +9,9 @@
* "sftp 192.168.0.1 user password sftp_write_nonblock.c /tmp/sftp_write_nonblock.c"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftpdir.c,v 1.7 2007/07/14 21:24:38 bagder Exp $
* $Id: sftpdir.c,v 1.8 2007/07/31 11:00:29 bagder Exp $
*
* Sample doing an SFTP directory listing.
*
@ -9,9 +9,9 @@
* "sftpdir 192.168.0.1 user password /tmp/secretdir"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: sftpdir_nonblock.c,v 1.8 2007/07/14 21:24:38 bagder Exp $
* $Id: sftpdir_nonblock.c,v 1.9 2007/07/31 11:00:29 bagder Exp $
*
* Sample doing an SFTP directory listing.
*
@ -9,9 +9,9 @@
* "sftpdir 192.168.0.1 user password /tmp/secretdir"
*/
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <libssh2_config.h>
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>

View File

@ -1,5 +1,5 @@
/*
* $Id: ssh2.c,v 1.14 2007/07/20 09:51:05 gknauf Exp $
* $Id: ssh2.c,v 1.15 2007/07/31 11:00:29 bagder Exp $
*
* Sample showing how to do SSH2 connect.
*
@ -9,7 +9,7 @@
* "ssh2 host user password [-p|-i|-k]"
*/
#include <libssh2_config.h>
#include "config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>