亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? minimal_client.c

?? subversion-1.4.3-1.tar.gz 配置svn的源碼
?? C
字號:
/* * minimal_client.c  - a minimal Subversion client application ("hello world") * * ==================================================================== * Copyright (c) 2000-2004 CollabNet.  All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution.  The terms * are also available at http://subversion.tigris.org/license-1.html. * If newer versions of this license are posted there, you may use a * newer version instead, at your option. * * This software consists of voluntary contributions made by many * individuals.  For exact contribution history, see the revision * history and logs, available at http://subversion.tigris.org/. * ==================================================================== * *  This app demonstrates how to use the svn_client.h API. * *  It reads a directory URL from the commandline, runs *  svn_client_list() and prints the list of directory-entries.  It *  also knows how to deal with basic username/password authentication *  challenges. * *  For a much more complex example, the svn cmdline client might be *  considered the 'reference implementation'. * *  From a Linux system, a typical commandline compile might look like: * *  cc minimal_client.c -o minimal_client \ *  -I/usr/local/include/subversion-1 -I/usr/local/apache2/include \ *  -L/usr/local/apache2/lib -L/usr/local/lib \ *  -lsvn_client-1 -lapr-0 -laprutil-0 * */#include "svn_client.h"#include "svn_cmdline.h"#include "svn_pools.h"#include "svn_config.h"#include "svn_fs.h"/* Display a prompt and read a one-line response into the provided buffer,   removing a trailing newline if present. */static svn_error_t *prompt_and_read_line(const char *prompt,                     char *buffer,                     size_t max){  int len;  printf("%s: ", prompt);  if (fgets(buffer, max, stdin) == NULL)    return svn_error_create(0, NULL, "error reading stdin");  len = strlen(buffer);  if (len > 0 && buffer[len-1] == '\n')    buffer[len-1] = 0;  return SVN_NO_ERROR;}/* A tiny callback function of type 'svn_auth_simple_prompt_func_t'. For   a much better example, see svn_cl__auth_simple_prompt in the official   svn cmdline client. */static svn_error_t *my_simple_prompt_callback (svn_auth_cred_simple_t **cred,                           void *baton,                           const char *realm,                           const char *username,                           svn_boolean_t may_save,                           apr_pool_t *pool){  svn_auth_cred_simple_t *ret = apr_pcalloc (pool, sizeof (*ret));  char answerbuf[100];  if (realm)    {      printf ("Authentication realm: %s\n", realm);    }  if (username)    ret->username = apr_pstrdup (pool, username);  else    {      SVN_ERR (prompt_and_read_line("Username", answerbuf, sizeof(answerbuf)));      ret->username = apr_pstrdup (pool, answerbuf);    }  SVN_ERR (prompt_and_read_line("Password", answerbuf, sizeof(answerbuf)));  ret->password = apr_pstrdup (pool, answerbuf);  *cred = ret;  return SVN_NO_ERROR;}/* A tiny callback function of type 'svn_auth_username_prompt_func_t'. For   a much better example, see svn_cl__auth_username_prompt in the official   svn cmdline client. */static svn_error_t *my_username_prompt_callback (svn_auth_cred_username_t **cred,                             void *baton,                             const char *realm,                             svn_boolean_t may_save,                             apr_pool_t *pool){  svn_auth_cred_username_t *ret = apr_pcalloc (pool, sizeof (*ret));  char answerbuf[100];  if (realm)    {      printf ("Authentication realm: %s\n", realm);    }  SVN_ERR (prompt_and_read_line("Username", answerbuf, sizeof(answerbuf)));  ret->username = apr_pstrdup (pool, answerbuf);  *cred = ret;  return SVN_NO_ERROR;}intmain (int argc, const char **argv){  apr_pool_t *pool;  svn_error_t *err;  svn_opt_revision_t revision;  apr_hash_t *dirents;  apr_hash_index_t *hi;  svn_client_ctx_t *ctx;  const char *URL;  if (argc <= 1)    {      printf ("Usage:  %s URL\n", argv[0]);        return EXIT_FAILURE;    }  else    URL = argv[1];  /* Initialize the app.  Send all error messages to 'stderr'.  */  if (svn_cmdline_init ("minimal_client", stderr) != EXIT_SUCCESS)    return EXIT_FAILURE;  /* Create top-level memory pool. Be sure to read the HACKING file to     understand how to properly use/free subpools. */  pool = svn_pool_create (NULL);  /* Initialize the FS library. */  err = svn_fs_initialize (pool);  if (err)    {      /* For functions deeper in the stack, we usually use the         SVN_ERR() exception-throwing macro (see svn_error.h).  At the         top level, we catch & print the error with svn_handle_error2(). */      svn_handle_error2 (err, stderr, FALSE, "minimal_client: ");      return EXIT_FAILURE;    }  /* Make sure the ~/.subversion run-time config files exist */    err = svn_config_ensure (NULL, pool);  if (err)    {      svn_handle_error2 (err, stderr, FALSE, "minimal_client: ");      return EXIT_FAILURE;    }  /* All clients need to fill out a client_ctx object. */  {    /* Initialize and allocate the client_ctx object. */    if ((err = svn_client_create_context (&ctx, pool)))      {        svn_handle_error2 (err, stderr, FALSE, "minimal_client: ");        return EXIT_FAILURE;      }        /* Load the run-time config file into a hash */    if ((err = svn_config_get_config (&(ctx->config), NULL, pool)))      {        svn_handle_error2 (err, stderr, FALSE, "minimal_client: ");        return EXIT_FAILURE;      }#ifdef WIN32    /* Set the working copy administrative directory name. */    if (getenv ("SVN_ASP_DOT_NET_HACK"))      {        err = svn_wc_set_adm_dir ("_svn", pool);        if (err)          {            svn_handle_error2 (err, stderr, FALSE, "minimal_client: ");            return EXIT_FAILURE;          }      }#endif    /* Depending on what your client does, you'll want to read about       (and implement) the various callback function types below.  */    /* A func (& context) which receives event signals during       checkouts, updates, commits, etc.  */    /* ctx->notify_func = my_notification_func;       ctx->notify_baton = NULL; */        /* A func (& context) which can receive log messages */    /* ctx->log_msg_func = my_log_msg_receiver_func;       ctx->log_msg_baton = NULL; */        /* A func (& context) which checks whether the user cancelled */    /* ctx->cancel_func = my_cancel_checking_func;       ctx->cancel_baton = NULL; */    /* Make the client_ctx capable of authenticating users */    {      /* There are many different kinds of authentication back-end         "providers".  See svn_auth.h for a full overview.         If you want to get the auth behavior of the 'svn' program,         you can use svn_cmdline_setup_auth_baton, which will give         you the exact set of auth providers it uses.  This program         doesn't use it because it's only appropriate for a command         line program, and this is supposed to be a general purpose         example. */      svn_auth_provider_object_t *provider;      apr_array_header_t *providers        = apr_array_make (pool, 4, sizeof (svn_auth_provider_object_t *));      svn_auth_get_simple_prompt_provider (&provider,                                           my_simple_prompt_callback,                                           NULL, /* baton */                                           2, /* retry limit */ pool);      APR_ARRAY_PUSH (providers, svn_auth_provider_object_t *) = provider;      svn_auth_get_username_prompt_provider (&provider,                                             my_username_prompt_callback,                                             NULL, /* baton */                                             2, /* retry limit */ pool);      APR_ARRAY_PUSH (providers, svn_auth_provider_object_t *) = provider;      /* Register the auth-providers into the context's auth_baton. */      svn_auth_open (&ctx->auth_baton, providers, pool);          }  } /* end of client_ctx setup */  /* Now do the real work. */    /* Set revision to always be the HEAD revision.  It could, however,     be set to a specific revision number, date, or other values. */  revision.kind = svn_opt_revision_head;  /* Main call into libsvn_client does all the work. */  err = svn_client_ls (&dirents,                       URL, &revision,                       FALSE, /* no recursion */                       ctx, pool);  if (err)    {      svn_handle_error2 (err, stderr, FALSE, "minimal_client: ");      return EXIT_FAILURE;    }  /* Print the dir entries in the hash. */  for (hi = apr_hash_first (pool, dirents); hi; hi = apr_hash_next (hi))    {      const char *entryname;      svn_dirent_t *val;      apr_hash_this (hi, (void *) &entryname, NULL, (void *) &val);            printf ("   %s\n", entryname);      /* 'val' is actually an svn_dirent_t structure; a more complex          program would mine it for extra printable information. */    }  return EXIT_SUCCESS;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av中文字幕一区二区三区| 久久日韩精品一区二区五区| 亚洲少妇30p| 波多野结衣中文字幕一区 | 91久久久免费一区二区| 中文字幕日韩欧美一区二区三区| 成人一区二区三区视频| 综合久久国产九一剧情麻豆| 欧美视频在线一区二区三区| 视频一区二区三区中文字幕| 日韩欧美国产麻豆| 处破女av一区二区| 亚洲欧美日韩综合aⅴ视频| 在线观看日韩电影| 奇米精品一区二区三区在线观看一| 精品三级在线看| 国产99精品国产| 一区二区久久久| 欧美xxxxx裸体时装秀| 国产精品白丝av| 亚洲精品乱码久久久久久黑人| 欧美日韩亚洲综合一区二区三区| 美女视频一区在线观看| 国产精品理伦片| 欧美裸体一区二区三区| 国产在线视频一区二区| 亚洲免费在线视频| 精品欧美一区二区在线观看| 99国产精品视频免费观看| 日韩综合一区二区| 国产日韩亚洲欧美综合| 欧美性感一区二区三区| 久久99精品网久久| 亚洲精品欧美专区| 久久亚区不卡日本| 欧美日韩中文精品| 成人国产精品免费| 青青草一区二区三区| 国产精品午夜电影| 日韩一区二区精品葵司在线| av在线播放成人| 国产一区二区在线观看视频| 一区二区三区中文在线| 国产亚洲综合av| 制服丝袜成人动漫| 91蝌蚪porny成人天涯| 国内精品久久久久影院薰衣草 | 久久99精品视频| 亚洲综合男人的天堂| 国产亚洲一二三区| 在线播放/欧美激情| proumb性欧美在线观看| 精久久久久久久久久久| 亚洲午夜精品17c| 日韩一区欧美一区| 国产欧美日本一区视频| 日韩三级高清在线| 欧美欧美欧美欧美| 色老汉一区二区三区| 成人一级视频在线观看| 精品影院一区二区久久久| 亚洲第一会所有码转帖| 亚洲男人的天堂av| 成人免费在线视频| 国产精品免费久久久久| 精品国产网站在线观看| 91精品国产手机| 欧美日韩久久久| 精品视频在线免费观看| 日本韩国一区二区三区| 99国内精品久久| 91农村精品一区二区在线| 成人免费观看视频| 成人免费视频播放| 不卡在线视频中文字幕| 99久久99精品久久久久久| 成人性生交大片免费| 东方aⅴ免费观看久久av| 色噜噜偷拍精品综合在线| 91豆麻精品91久久久久久| 一本大道久久a久久精品综合 | 成人激情综合网站| 成人涩涩免费视频| 91在线观看成人| 91啦中文在线观看| 欧美日韩久久一区二区| 欧美一区二区三区成人| 精品日韩在线观看| 国产日韩精品一区二区三区 | 91视频com| 91国产视频在线观看| 欧美三区在线观看| 欧美日韩成人综合| 日韩欧美另类在线| 久久久综合视频| 中文字幕亚洲一区二区va在线| 亚洲欧洲av另类| 偷拍日韩校园综合在线| 麻豆精品视频在线| 国产91丝袜在线18| 在线观看视频91| 欧美一级搡bbbb搡bbbb| 久久先锋影音av| 最新成人av在线| 天天综合天天综合色| 精品一区二区三区在线视频| 成人午夜激情影院| 欧美综合一区二区三区| 欧美一级夜夜爽| 国产精品久线观看视频| 丝袜亚洲另类丝袜在线| 国产乱码精品一品二品| 色天天综合久久久久综合片| 欧美疯狂性受xxxxx喷水图片| 26uuu精品一区二区在线观看| 国产精品亲子伦对白| 亚洲国产精品精华液网站| 国产精品自在在线| 在线亚洲免费视频| 精品免费一区二区三区| 亚洲日本一区二区| 老汉av免费一区二区三区 | 激情综合网av| 91视频91自| 久久久久9999亚洲精品| 一区二区三区在线观看视频| 久久精品噜噜噜成人av农村| 91免费版在线| 亚洲精品一区二区三区精华液| 亚洲免费av网站| 久久精品久久精品| 在线国产亚洲欧美| 国产女主播一区| 日韩中文字幕区一区有砖一区 | 欧美色涩在线第一页| 久久蜜桃av一区二区天堂 | 欧美日韩综合在线免费观看| 久久先锋影音av| 日韩国产成人精品| 91麻豆国产在线观看| 久久综合国产精品| 日本不卡高清视频| 欧美在线一区二区三区| 国产精品视频第一区| 青青草97国产精品免费观看 | 日韩免费看网站| 一区二区三区在线观看欧美 | 亚洲欧美日韩久久| 国产精品正在播放| 日韩免费高清av| 亚洲成人动漫av| 色综合天天在线| 国产日产欧美精品一区二区三区| 日韩高清欧美激情| 欧美男人的天堂一二区| 亚洲在线观看免费| 91国产精品成人| 亚洲精品国久久99热| 北条麻妃一区二区三区| 国产情人综合久久777777| 国产在线一区二区综合免费视频| 日韩一区二区免费在线电影 | 久久精品夜夜夜夜久久| 久久99最新地址| 欧美一级在线视频| 毛片av中文字幕一区二区| 日韩一区二区三区视频在线观看| 午夜精品视频一区| 9191成人精品久久| 美女脱光内衣内裤视频久久影院| 欧美一区二区视频在线观看2020 | 亚洲欧美日韩系列| 色婷婷亚洲一区二区三区| 日韩伦理免费电影| 91美女精品福利| 亚洲综合另类小说| 欧美日韩亚洲高清一区二区| 午夜精品福利在线| 中文字幕亚洲欧美在线不卡| 成人黄色在线网站| 亚洲最新视频在线播放| 精品视频在线看| 强制捆绑调教一区二区| 久久综合一区二区| 不卡av电影在线播放| 亚洲精品日日夜夜| 欧美美女网站色| 麻豆精品国产传媒mv男同 | 国产精品免费久久| 在线免费观看日本欧美| 亚洲成人tv网| 精品福利视频一区二区三区| 粉嫩aⅴ一区二区三区四区五区| 国产精品九色蝌蚪自拍| 91福利精品第一导航| 免费精品视频在线| 中文字幕精品三区| 欧美影院一区二区三区| 美女网站一区二区| 亚洲图片激情小说|