| 1 |
tsawada2 |
3 |
/** |
| 2 |
|
|
* $Id: CMRHostTypes.h,v 1.1.1.1 2005-05-11 17:51:19 tsawada2 Exp $ |
| 3 |
|
|
* |
| 4 |
|
|
* CMRHostTypes.h |
| 5 |
|
|
* |
| 6 |
|
|
* Copyright (c) 2003, Takanori Ishikawa. |
| 7 |
|
|
* See the file LICENSE for copying permission. |
| 8 |
|
|
*/ |
| 9 |
|
|
|
| 10 |
|
|
#ifndef HOSTTYPES_INCLUDED |
| 11 |
|
|
#define HOSTTYPES_INCLUDED |
| 12 |
|
|
#ifdef __cplusplus |
| 13 |
|
|
extern "C" { |
| 14 |
|
|
#endif |
| 15 |
|
|
|
| 16 |
|
|
#import <Foundation/Foundation.h> |
| 17 |
|
|
|
| 18 |
|
|
/* |
| 19 |
|
|
2channel.brd compatibility |
| 20 |
|
|
-------------------------------- |
| 21 |
|
|
http://jbbs.shitaraba.com/business/767/ |
| 22 |
|
|
--> |
| 23 |
|
|
(host) jbbs.shitaraba.com |
| 24 |
|
|
(path) jbbs.shitaraba.com/business |
| 25 |
|
|
(directory) 767 |
| 26 |
|
|
*/ |
| 27 |
|
|
// return temporary cstring |
| 28 |
|
|
extern const char *CMRGetHostCStringFromBoardURL(NSURL *anURL, const char **bbs); |
| 29 |
|
|
// return copied string |
| 30 |
|
|
extern NSString *CMRGetHostStringFromBoardURL(NSURL *anURL, NSString **bbs); |
| 31 |
|
|
// return temporary string |
| 32 |
|
|
extern NSString *CMRGetHostStringFromBoardURLNoCopy(NSURL *anURL, NSString **bbs); |
| 33 |
|
|
|
| 34 |
|
|
|
| 35 |
|
|
|
| 36 |
|
|
|
| 37 |
|
|
extern bool can_readcgi(const char *host); |
| 38 |
|
|
|
| 39 |
|
|
// 2channelŒÝŠ· |
| 40 |
|
|
extern bool is_2channel(const char *host); |
| 41 |
|
|
extern bool is_be2ch(const char *host); |
| 42 |
|
|
extern bool is_jbbs_shita(const char *host); |
| 43 |
|
|
extern bool is_machi(const char *host); |
| 44 |
|
|
extern bool is_jbbs(const char *host); |
| 45 |
|
|
extern bool is_shitaraba(const char *host); |
| 46 |
|
|
extern bool is_tanteifile(const char *host); |
| 47 |
|
|
|
| 48 |
|
|
extern bool can_offlaw(const char *host); |
| 49 |
|
|
extern bool kako_salad(const char *host, const char *bbs); |
| 50 |
|
|
extern bool bbs_qb(const char *host); |
| 51 |
|
|
|
| 52 |
|
|
|
| 53 |
|
|
|
| 54 |
|
|
|
| 55 |
|
|
|
| 56 |
|
|
#ifdef __cplusplus |
| 57 |
|
|
} |
| 58 |
|
|
#endif |
| 59 |
|
|
|
| 60 |
|
|
#endif /* HOSTTYPES_INCLUDED */ |