~fractalcat/gearmand/docfixes

« back to all changes in this revision

Viewing changes to docs/man/gearman_client_create.3

  • Committer: Brian Aker
  • Date: 2012-09-30 23:55:03 UTC
  • mto: (621.4.21 workspace)
  • mto: This revision was merged to the branch mainline in revision 656.
  • Revision ID: brian@tangent.org-20120930235503-u6r0uq1hl0mdj5an
Fix it so that we don't need to store the manpages in the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "GEARMAN_CLIENT_CREATE" "3" "September 14, 2012" "0.38" "Gearmand"
2
 
.SH NAME
3
 
gearman_client_create \- Gearmand Documentation, http://gearman.info/
4
 
.
5
 
.nr rst2man-indent-level 0
6
 
.
7
 
.de1 rstReportMargin
8
 
\\$1 \\n[an-margin]
9
 
level \\n[rst2man-indent-level]
10
 
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11
 
-
12
 
\\n[rst2man-indent0]
13
 
\\n[rst2man-indent1]
14
 
\\n[rst2man-indent2]
15
 
..
16
 
.de1 INDENT
17
 
.\" .rstReportMargin pre:
18
 
. RS \\$1
19
 
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
 
. nr rst2man-indent-level +1
21
 
.\" .rstReportMargin post:
22
 
..
23
 
.de UNINDENT
24
 
. RE
25
 
.\" indent \\n[an-margin]
26
 
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
 
.nr rst2man-indent-level -1
28
 
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
 
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30
 
..
31
 
.\" Man page generated from reStructeredText.
32
 
.
33
 
.SH SYNOPSIS
34
 
.sp
35
 
#include <libgearman/gearman.h>
36
 
.INDENT 0.0
37
 
.TP
38
 
.B gearman_client_st *gearman_client_create(gearman_client_st\fI\ *client\fP)
39
 
.UNINDENT
40
 
.INDENT 0.0
41
 
.TP
42
 
.B gearman_client_st *gearman_client_clone(gearman_client_st\fI\ *client\fP, const gearman_client_st\fI\ *from\fP)
43
 
.UNINDENT
44
 
.INDENT 0.0
45
 
.TP
46
 
.B void gearman_client_free(gearman_client_st\fI\ *client\fP)
47
 
.UNINDENT
48
 
.sp
49
 
Link with \-lgearman
50
 
.SH DESCRIPTION
51
 
.sp
52
 
\fI\%gearman_client_create()\fP is used to create a c:type:\fIgearman_client_st\fP  structure that will then
53
 
be used by other libgearman client functions to communicate with the server. You
54
 
should either pass a statically declared \fBgearman_client_st\fP  to \fI\%gearman_client_create()\fP or
55
 
a NULL. If a NULL passed in then a structure is allocated for you.
56
 
.sp
57
 
\fI\%gearman_client_clone()\fP is similar to \fI\%gearman_client_create()\fP but it copies the
58
 
defaults and list of servers from the source \fBgearman_client_st\fP . If you pass a null as
59
 
the argument for the source to clone, it is the same as a call to gearman_client_create.
60
 
If the destination argument is NULL a \fBgearman_client_st\fP  will be allocated for you.
61
 
.sp
62
 
To clean up memory associated with a \fBgearman_client_st\fP  structure you should pass
63
 
it to gearman_client_free when you are finished using it. \fI\%gearman_client_free()\fP is
64
 
the only way to make sure all memory is deallocated when you finish using
65
 
the structure.
66
 
.IP Warning
67
 
You may wish to avoid using \fI\%gearman_client_create()\fP or \fI\%gearman_client_clone()\fP with a
68
 
stack based allocation, ie the first parameter. The most common issues related to ABI safety involve
69
 
stack allocated structures.
70
 
.RE
71
 
.SH RETURN VALUE
72
 
.sp
73
 
\fI\%gearman_client_create\fP returns a pointer to the gearman_client_st
74
 
that was created (or initialized). On an allocation failure, it returns
75
 
NULL.
76
 
.sp
77
 
\fI\%gearman_client_clone\fP returns a pointer to the gearman_client_st that was created
78
 
(or initialized). On an allocation failure, it returns NULL.
79
 
.SH HOME
80
 
.sp
81
 
To find out more information please check:
82
 
\fI\%http://gearman.info/\fP
83
 
.IP "See also"
84
 
.sp
85
 
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP \fIgearman_client_st(3)\fP
86
 
.RE
87
 
.SH AUTHOR
88
 
Data Differential http://www.datadifferential.com/
89
 
.SH COPYRIGHT
90
 
2012, Data Differential, http://www.datadifferential.com/
91
 
.\" Generated by docutils manpage writer.
92
 
.\" 
93
 
.