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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? minimal_client.c

?? subversion-1.4.5.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;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品日日鲁夜夜添| 福利一区二区在线| 欧美色涩在线第一页| 一区二区成人在线观看| 欧美影院一区二区三区| 亚洲电影第三页| 51午夜精品国产| 久久电影国产免费久久电影| 日韩视频免费观看高清完整版在线观看| 日韩黄色一级片| xfplay精品久久| 99精品久久久久久| 亚洲成av人片一区二区| 日韩美女视频在线| 成人精品视频一区二区三区尤物| 亚洲欧洲av色图| 91精品婷婷国产综合久久性色| 日韩中文字幕1| 国产欧美一区二区精品久导航| 99riav一区二区三区| 婷婷综合五月天| 国产日韩精品一区二区浪潮av| caoporen国产精品视频| 午夜亚洲国产au精品一区二区 | 国产 日韩 欧美大片| 亚洲欧美在线高清| 日韩一区二区中文字幕| 成人福利电影精品一区二区在线观看| 一个色综合网站| 久久只精品国产| 在线观看视频欧美| 国产黄人亚洲片| 亚洲sss视频在线视频| 国产欧美精品一区二区色综合| 色狠狠色狠狠综合| 狠狠色丁香久久婷婷综合_中| 中文字幕一区二区三区乱码在线| 欧美男人的天堂一二区| 成人黄色在线看| 蜜桃久久av一区| 亚洲美女屁股眼交| 久久久久久久久97黄色工厂| 91极品美女在线| 大胆欧美人体老妇| 久久国产夜色精品鲁鲁99| 亚洲人123区| 久久精品欧美日韩精品 | 欧美日本在线看| 成人av网址在线| 国内国产精品久久| 日韩精品一二三区| 亚洲永久免费视频| 国产精品久久久一本精品| 欧美成人女星排名| 538prom精品视频线放| 91福利视频在线| 成人h动漫精品一区二| 国产一区日韩二区欧美三区| 亚洲午夜私人影院| 亚洲男人都懂的| 国产精品久99| 国产精品另类一区| 欧美韩国日本一区| 国产三区在线成人av| 日韩美女视频在线| 欧美成人video| 日韩视频免费观看高清完整版| 欧美日本在线观看| 欧美日韩一区二区三区在线看| 91麻豆蜜桃一区二区三区| 成人aaaa免费全部观看| 成人午夜视频在线| 岛国av在线一区| 成人动漫在线一区| 成人精品视频一区二区三区| 国产成人高清在线| 不卡的看片网站| 99久久久久久| 一本色道a无线码一区v| 色综合中文字幕国产| 99国产欧美另类久久久精品| 波多野结衣的一区二区三区| 成人做爰69片免费看网站| 成人黄色一级视频| 色播五月激情综合网| 91激情五月电影| 欧美日韩电影在线| 精品日韩一区二区三区免费视频| 日韩久久免费av| 国产三级精品三级在线专区| 日本一区二区成人| 一区二区三区波多野结衣在线观看| 亚洲精品视频一区| 亚洲图片欧美色图| 美女在线视频一区| 懂色av一区二区三区免费观看| 成人av在线影院| 欧美视频精品在线| 精品日韩在线观看| 欧美激情一区二区三区不卡| 亚洲人精品午夜| 午夜影院久久久| 狠狠色2019综合网| 97精品国产97久久久久久久久久久久| 91在线一区二区三区| 欧美福利一区二区| 久久精品视频网| 洋洋av久久久久久久一区| 日av在线不卡| 国产99久久久国产精品潘金网站| 91视频在线观看免费| 欧美精选午夜久久久乱码6080| 欧美变态tickling挠脚心| 亚洲欧洲日韩在线| 久久99最新地址| 色综合天天综合网天天看片| 91麻豆精品国产91久久久久| 久久精品一级爱片| 亚洲国产日韩一区二区| 国产一二精品视频| 欧美日韩视频在线一区二区| 欧美精品一区二区三区蜜臀| 亚洲欧洲中文日韩久久av乱码| 丝袜亚洲另类丝袜在线| 岛国av在线一区| 日韩欧美在线123| 亚洲视频电影在线| 国产麻豆日韩欧美久久| 欧美午夜片在线看| 欧美激情在线看| 久久国内精品视频| 欧美挠脚心视频网站| 国产精品美女久久久久久久久| 日韩成人av影视| 91免费看片在线观看| 久久久久久久久久久久久女国产乱 | 国产精品国模大尺度视频| 另类调教123区| 欧美日韩一级黄| 亚洲欧美另类图片小说| 国产一区福利在线| 欧美电视剧免费观看| 亚洲小说欧美激情另类| 99久久精品国产一区| 久久精品欧美一区二区三区不卡| 天堂午夜影视日韩欧美一区二区| 成人免费三级在线| 久久美女高清视频| 久久99精品久久久| 日韩欧美一区二区视频| 亚洲午夜视频在线观看| 色久综合一二码| 国产欧美日韩在线看| 国模套图日韩精品一区二区| 7777精品伊人久久久大香线蕉完整版 | 欧美日韩亚洲高清一区二区| 国产精品黄色在线观看| 国产aⅴ综合色| 国产女人水真多18毛片18精品视频| 日本欧美一区二区三区| 欧美日韩色一区| 亚洲国产日韩一区二区| 欧美在线三级电影| 亚洲黄色小视频| 欧洲精品视频在线观看| 亚洲一区在线视频| 欧美中文字幕不卡| 亚洲综合色网站| 欧美色涩在线第一页| 亚洲国产sm捆绑调教视频 | 国产69精品一区二区亚洲孕妇 | 欧美色中文字幕| 亚洲大片免费看| 欧美日韩国产欧美日美国产精品| 一区二区三区在线影院| 精品视频1区2区| 日韩制服丝袜av| 26uuu精品一区二区| 国产成人自拍在线| 国产精品美女久久福利网站 | 青娱乐精品视频在线| 欧美一区二区三区思思人| 日韩精品三区四区| 精品国产一区二区亚洲人成毛片| 激情图片小说一区| 国产日产精品一区| www.久久久久久久久| 亚洲精品视频在线| 欧美一区二区三区喷汁尤物| 韩国三级在线一区| 中文字幕中文在线不卡住| 在线国产电影不卡| 美女www一区二区| 国产欧美精品一区| 欧美羞羞免费网站| 黄色成人免费在线| 亚洲色图.com| 日韩午夜在线观看| 成人午夜短视频| 日韩精品1区2区3区|