source: libcf/trunk/include/cf_base.h@ 37

Last change on this file since 37 was 37, checked in by cheese, 11 years ago

#1 add mainpage of doxygen documentation

File size: 1.6 KB
RevLine 
[4]1/**
[26]2 * @file cf_base.h
3 * @author myusgun <myusgun@gmail.com>
4 * @version 0.1
[37]5 *
6 * @mainpage
7
8<h2 style="line-height: 10%;">Welcome to documentation page of libCF</h2>
9&nbsp; - CFLibrary (cheese's foundation library)
10
11&nbsp; This documentation (suggested by nvdark) includes only manual of APIs.
12
13&nbsp; Please visit <a href="/trac/libcf">Trac</a> of libcf.
14
15<h3>supported functions</h3>
16<ol>
17 <li> File I/O </li>
18 <li> Socket </li>
19 <li> Logging (advisor: vfire) </li>
20 <li> Utilities for Debug </li>
21 <li> Thread & Mutex </li>
22 <li> ..more needs ? </li>
23</ol>
24
25사츠키 하앜
26
[4]27 */
28#ifndef __CF_BASE_H__
29#define __CF_BASE_H__
30
[26]31/** boolean 타입 */
[4]32typedef enum {
[26]33 CF_FALSE = 0, /**< 거짓 */
34 CF_TRUE = 1 /**< 참 */
35} E_CF_BOOL,
36/**
37 * boolean 타입
38 * @see E_CF_BOOL
39 */
40 CF_BOOL;
[4]41
[26]42/** 성공 시, 반환 값 */
[4]43#define CF_OK 0
[26]44/** 오류 코드 */
[4]45#define CF_ERROR -1
[6]46
[26]47/** 파일 이름 및 경로 길이 */
[10]48#define NAME_LENGTH 128
49
[26]50/** 오류 코드 베이스 넘버 */
[4]51#define CF_ERROR_BASE CF_ERROR * 1000
[26]52/** @see cf_file.h */
[6]53#define CF_ERROR_FILE CF_ERROR_BASE * 2
[26]54/** @see cf_socket.h */
[6]55#define CF_ERROR_SOCKET CF_ERROR_BASE * 3
[26]56/** @see cf_thread.h */
[6]57#define CF_ERROR_THREAD CF_ERROR_BASE * 4
[26]58/** @see cf_thread.h */
[6]59#define CF_ERROR_MUTEX CF_ERROR_BASE * 5
[26]60/** @see cf_debug.h */
[6]61#define CF_ERROR_DEBUG CF_ERROR_BASE * 6
[26]62/** @see cf_log.h */
[10]63#define CF_ERROR_LOG CF_ERROR_BASE * 7
[6]64
[26]65/** Windows 에서의 함수 EXPORT 구문 정의 */
[4]66#ifdef _WIN32
67# define CF_EXPORT __declspec(dllexport)
68#else // #ifdef _WIN32
69# define CF_EXPORT
70#endif // #ifdef _WIN32
71
72#endif // #ifndef __CF_BASE_H__
Note: See TracBrowser for help on using the repository browser.