ÕâÊÇÒ»·â MIME žñÊœµÄ¶à²¿·ÖÓÊŒþ¡£
------=_NextPart_000_006A_01CE61DC.73A22A70
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi, Jarod. W:
I got your demo, and a build libcurl, but I can=E2=80=99t get =
any info
from https://{ovirt-engine }/api .
my code like this:
int main(void)
{
CURL *curl;
CURLcode res;
curl =3D curl_easy_init();
=20
if (curl)
{
printf("enter....\n");
curl_easy_setopt(curl, CURLOPT_URL, =
"https://192.168.1.201/api");
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, callback_func);
curl_easy_setopt(curl, CURLOPT_USERPWD, =
"admin@internal:111111");
curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.crt");
curl_easy_perform(curl);
printf("exit.....\n");
=20
curl_easy_cleanup(curl);
}
=20
return 0;
}
=20
And when I run it, just outpu :
enter....
exit.....
=20
I got the libcurl from
http://curl.haxx.se/download.html =
<
http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.tar.gz> =
and chosed curl-7.30.0.tar.gz
and I use make and make install without any other options . I just guess =
maybe it need
other SSL library supported, but I don=E2=80=99t know how and which .
=20
=E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B46=E6=9C=884=E6=97=A5 =
18:14
=E6=94=B6=E4=BB=B6=E4=BA=BA: wlbleaboy@126
=E6=8A=84=E9=80=81: engine-devel(a)ovirt.org
=E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: [Engine-devel] =
ovirt-engine-sdk with C
=20
2013/6/4 wlbleaboy@126 <wlbleaboy(a)126.com>
Hi, Jarod. W:
Yes, I just want to use c to invoke ovirt engine RestAPI,
Just get vm=E2=80=99s id, host, port, secur-port, and ticket,
How can I use libcurl to connect https, could give me
a simple demo to connect https://{ovirt-engine}/api =
<https://%7bovirt-engine%7d/api> with=20
--cafile, the ca.crt I get from http://{ovirt-engine}/ca.crt =
<http://%7bovirt-engine%7d/ca.crt>=20
Please download the demo from the above url:
https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c
=20
=20
=20
=E5=8F=91=E4=BB=B6=E4=BA=BA: Jarod. w [mailto:work.iec23801@gmail.com]=20
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2013=E5=B9=B45=E6=9C=8814=E6=97=A5 =
10:27
=E6=94=B6=E4=BB=B6=E4=BA=BA: leaboy@126
=E6=8A=84=E9=80=81: engine-devel(a)ovirt.org
=E4=B8=BB=E9=A2=98: Re: [Engine-devel] ovirt-engine-sdk with C
=20
2013/5/13 leaboy@126 <wlbleaboy(a)126.com>
Hi=EF=BC=8CAll
I felt oivrt-engine-sdk coded with Python is slowly to connect
ovirt-engine and console vm when a user have many vms, So, I just
want to rewrite the sdk with C(ANSI C Language). Just rewrite a sdk
with C to connect overt-engine and console vm, would anyone give=20
me some suggestion.
Do you want to use c to invoke ovirt engine RestAPI, right?
If yes, you can use libcurl to do the thing, and it'll make you happy.
=20
=20
Now, the problem is how can I connect to ovit-engine with C, =
and
how can I get some information of vms, and how ovirrt-engine can=20
respond my action(start,stop, .eg)
Agree with Michael Pasternak.
You should parse your code into the mail list, or someone can't help
you.
=20
=20
=
Leaboy@beijing
Thinks
_______________________________________________
Engine-devel mailing list
Engine-devel(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel
--=20
---
Best Regards
Jarod.W
--=20
---
Best Regards
Jarod.W
------=_NextPart_000_006A_01CE61DC.73A22A70
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:=E5=AE=8B=E4=BD=93;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@=E5=AE=8B=E4=BD=93";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:=E5=AE=8B=E4=BD=93;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DZH-CN link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi, Jarod. W:<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 I got =
your demo, and a build libcurl, but I can=E2=80=99t get
any info<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>from https://{ovirt-engine }/api .<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>my code like this:<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>int
main(void)<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>{<o:p></o:p=
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
CURL *curl;<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
CURLcode res;<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
curl =3D curl_easy_init();<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> =
</o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
if (curl)<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
{<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
printf("enter....\n");<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
curl_easy_setopt(curl, CURLOPT_URL, =
"<b>https://192.168.1.201/api</b>");<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, =
callback_func);<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
curl_easy_setopt(curl, CURLOPT_USERPWD, =
"<b>admin@internal:111111</b>");<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
curl_easy_setopt(curl, =
CURLOPT_CAINFO,"<b>/tmp/ca.crt</b>");<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
curl_easy_perform(curl);<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
printf("exit.....\n");<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> =
</o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
curl_easy_cleanup(curl);<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
}<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> =
</o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>=C2=A0=C2=A0=
=C2=A0
return 0;<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>}<o:p></o:p=
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> =
</o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>And
when I run it, just outpu :<o:p></o:p
</span></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif"'>enter....<o:p></o:p></span></b></p>
<p class=3DMsoNormal><b><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:
"Calibri","sans-serif"'>exit.....<o:p></o:p></span></b></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'><o:p> =
</o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>I
got the libcurl from <a
href=3D"http://curl.haxx.se/download.html%20and%20chosed%20curl-7.30.0.ta=
r.gz">http://curl.haxx.se/download.html
and chosed curl-7.30.0.tar.gz</a><o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>and
I use make and make install without any other options . I just guess =
maybe it
need<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif"'>other
SSL library supported, but I don=E2=80=99t know how and which =
.<o:p></o:p
</span></p>
<p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p
</span></p>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt =
0cm 0cm 0cm'>
<p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w =
[mailto:work.iec23801@gmail.com] <br>
</span><b><span =
style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span =
style=3D'font-size:10.0pt'>=E5=B9=B4<span
lang=3DEN-US>6</span>=E6=9C=88<span
lang=3DEN-US>4</span>=E6=97=A5<span =
lang=3DEN-US> 18:14<br>
</span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></b><span lang=3DEN-US> wlbleaboy@126<br>
</span><b>=E6=8A=84=E9=80=81<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US>
engine-devel(a)ovirt.org<br>
</span><b>=E4=B8=BB=E9=A2=98<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> Re: </span>=E7=AD=94=E5=A4=8D<span
lang=3DEN-US>: [Engine-devel] ovirt-engine-sdk with =
C<o:p></o:p></span
</span></p>
</div>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p
</span></p>
<div>
<p class=3DMsoNormal><span lang=3DEN-US>2013/6/4 wlbleaboy@126 <<a
href=3D"mailto:wlbleaboy@126.com" =
target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p
</span></p>
<div>
<div>
<blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US style=3D'font-size:10.0pt'>Hi, Jarod. W:</span><span =
lang=3DEN-US><o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US style=3D'font-size:10.0pt'> Yes, I
just =
want to </span><span
lang=3DEN-US>use c to invoke ovirt engine RestAPI,<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Just get vm</span>=E2=80=99<span lang=3DEN-US>s id, host, =
port, secur-port,
and ticket,<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> How can I use libcurl to connect https, =
could
give me<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>a simple demo to connect <a =
href=3D"https://%7bovirt-engine%7d/api"
target=3D"_blank">https://{ovirt-engine}/api</a> with =
<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>--cafile, the ca.crt I get from <a
href=3D"http://%7bovirt-engine%7d/ca.crt" =
target=3D"_blank">http://{ovirt-engine}/ca.crt</a><o:p></o:p
</span></p>
</div>
</div>
</blockquote>
<div>
<p class=3DMsoNormal><span lang=3DEN-US>Please download the demo from =
the above
url:<br>
<a =
href=3D"https://github.com/jarod-w/hglibraries/blob/master/demo/rest...
">https://github.com/jarod-w/hglibraries/blob/master/demo/restapi.c</a><b=
r>
<o:p></o:p
</span></p>
</div>
<blockquote style=3D'border:none;border-left:solid #CCCCCC =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span
lang=3DEN-US><o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><span
lang=3DEN-US><o:p></o:p
</span></p>
<div style=3D'border:none;border-top:solid windowtext =
1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color -moz-use-text-color'>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style=3D'font-size:10.0pt'>=E5=8F=91=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> Jarod. w [mailto:<a
href=3D"mailto:work.iec23801@gmail.com" =
target=3D"_blank">work.iec23801(a)gmail.com</a>]
<br>
</span><b><span =
style=3D'font-size:10.0pt'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4<span =
lang=3DEN-US>:</span></span></b><span
lang=3DEN-US style=3D'font-size:10.0pt'> 2013</span><span =
style=3D'font-size:10.0pt'>=E5=B9=B4<span
lang=3DEN-US>5</span>=E6=9C=88<span
lang=3DEN-US>14</span>=E6=97=A5<span =
lang=3DEN-US> 10:27<br>
</span><b>=E6=94=B6=E4=BB=B6=E4=BA=BA<span =
lang=3DEN-US>:</span></b><span lang=3DEN-US> leaboy@126<br>
</span><b>=E6=8A=84=E9=80=81<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> <a
href=3D"mailto:engine-devel@ovirt.org" =
target=3D"_blank">engine-devel(a)ovirt.org</a><br>
</span><b>=E4=B8=BB=E9=A2=98<span
lang=3DEN-US>:</span></b><span =
lang=3DEN-US> Re: [Engine-devel]
ovirt-engine-sdk with C</span></span><span =
lang=3DEN-US><o:p></o:p
</span></p>
</div>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p
</span></p>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>2013/5/13 leaboy@126 <<a =
href=3D"mailto:wlbleaboy@126.com"
target=3D"_blank">wlbleaboy@126.com</a>><o:p></o:p
</span></p>
<div>
<div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Hi</span>=EF=BC=8C<span =
lang=3DEN-US>All<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>
I felt
oivrt-engine-sdk coded with Python is slowly to =
connect<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>ovirt-engine and console vm when a user have many vms, So, =
I just<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>want to rewrite the sdk with C(ANSI C Language). Just =
rewrite a sdk<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>with C to connect overt-engine and console vm, would anyone =
give <o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>me some suggestion.<o:p></o:p
</span></p>
</div>
</div>
</blockquote>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Do you want to use c to invoke ovirt engine RestAPI, =
right?<o:p></o:p
</span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=3DEN-US>If yes, you can use libcurl to do the thing, and it'll make =
you
happy.<o:p></o:p
</span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p
</span></p>
</div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>
Now, the =
problem is
how can I connect to ovit-engine with C, and<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>how can I get some information of vms, and how =
ovirrt-engine can <o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>respond my action(start,stop, .eg)<o:p></o:p
</span></p>
</div>
</div>
</blockquote>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>Agree with Michael Pasternak.<o:p></o:p
</span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>You should parse your code into the mail list, or someone =
can't help<o:p></o:p
</span></p>
</div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US>you.<o:p></o:p
</span></p>
</div>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p
</span></p>
</div>
<blockquote style=3D'border:none;border-left:solid windowtext =
1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color =
rgb(204,204,204)'>
<div>
<div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> <o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> =
&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;  =
; =
Leaboy@beijing<o:p></o:p
</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US> =
&=
nbsp; &n=
bsp; &nb=
sp; &nbs=
p;
Thinks<o:p></o:p
</span></p>
</div>
</div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><span
lang=3DEN-US><br>
_______________________________________________<br>
Engine-devel mailing list<br>
<a href=3D"mailto:Engine-devel@ovirt.org" =
target=3D"_blank">Engine-devel(a)ovirt.org</a><br>
<a
href=3D"http://lists.ovirt.org/mailman/listinfo/engine-devel" =
target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/en...
><o:p></o:p
</span></p>
</blockquote>
</div>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=3DEN-US><br>
<br clear=3Dall>
<br>
-- <br>
---<br>
Best Regards<br>
Jarod.W<o:p></o:p
</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class=3DMsoNormal><span lang=3DEN-US><br>
<br clear=3Dall>
<br>
-- <br>
---<br>
Best Regards<br>
Jarod.W<o:p></o:p
</span></p>
</div>
</div>
</div>
</body>
</html>
------=_NextPart_000_006A_01CE61DC.73A22A70--