~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/megaco/src/text/megaco_text_gen_v3.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1938
1938
     enc_StreamID(Val, State)
1939
1939
    ].
1940
1940
 
 
1941
%% The value is already encoded
 
1942
enc_eventOther(#megaco_event_parameter{name  = Name,
 
1943
                                       value = Value}, State) 
 
1944
  when is_list(Value) ->
 
1945
    [
 
1946
     enc_Name(Name, State),
 
1947
     ?EqualToken,
 
1948
     Value
 
1949
    ];
 
1950
%% Special treatment of the ds parameter of the dd/ce event
 
1951
enc_eventOther(#'EventParameter'{eventParameterName = "ds" = Name,
 
1952
                                 value              = [DigitString],
 
1953
                                 extraInfo          = asn1_NOVALUE}, State) ->
 
1954
    [
 
1955
     enc_Name(Name, State),
 
1956
     ?EqualToken,
 
1957
     enc_DigitString(DigitString, State)
 
1958
    ];
1941
1959
enc_eventOther(#'EventParameter'{eventParameterName = Name,
1942
1960
                                 value              = Value,
1943
1961
                                 extraInfo          = Extra}, State) ->
3214
3232
quoted_string_count([], Count, IsSafe) ->
3215
3233
    {IsSafe, Count}.
3216
3234
 
 
3235
enc_DigitString(String, _State) when is_list(String) ->
 
3236
    [?DQUOTE, String, ?DQUOTE].
 
3237
 
 
3238
    
3217
3239
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3218
3240
 
3219
3241
%% Encode an octet string, escape } by \ if necessary