X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fvstring.h;h=5d0d0e3727810529e50cbed52d72d8b731a7ca11;hb=refs%2Fchanges%2F82%2F3882%2F1;hp=f698fba002ab9f755279e136f5b5aa6986e9f57a;hpb=07495effe193ca3f73c3bf0ce417068f9ac9dcdd;p=com%2Fgs-lite.git diff --git a/include/vstring.h b/include/vstring.h index f698fba..5d0d0e3 100644 --- a/include/vstring.h +++ b/include/vstring.h @@ -1,51 +1,51 @@ -/* ------------------------------------------------ -Copyright 2014 AT&T Intellectual Property - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------------------------------- */ - -/* - * vstring.h: definition of vstring struct for use in applications and hfta - */ -#ifndef VSTRING_H -#define VSTRING_H - -#include "gsconfig.h" -#include "gstypes.h" - -/* vstring32 has to match string32 definition in rts_string.h however, the data - types differ */ - -struct vstring32 { - gs_uint32_t length; - gs_uint32_t offset; - gs_uint32_t reserved; -}; - -// vstring is the unpacked version of a string, -// vstring32 is its repreentation in a gs record. -// This complication is necessary to support -// old gsdat files. - - -struct vstring { - gs_uint32_t length; - gs_p_t offset; - gs_uint32_t reserved; -}; - -struct hfta_ipv6_str{ - gs_uint32_t v[4]; -}; - - -#endif +/* ------------------------------------------------ +Copyright 2014 AT&T Intellectual Property + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ------------------------------------------- */ + +/* + * vstring.h: definition of vstring struct for use in applications and hfta + */ +#ifndef VSTRING_H +#define VSTRING_H + +#include "gsconfig.h" +#include "gstypes.h" + +/* vstring32 has to match string32 definition in rts_string.h however, the data + types differ */ + +struct vstring32 { + gs_uint32_t length; + gs_uint32_t offset; + gs_uint32_t reserved; +}; + +// vstring is the unpacked version of a string, +// vstring32 is its repreentation in a gs record. +// This complication is necessary to support +// old gsdat files. + + +struct vstring { + gs_uint32_t length; + gs_p_t offset; + gs_uint32_t reserved; +}; + +struct hfta_ipv6_str{ + gs_uint32_t v[4]; +}; + + +#endif