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

« back to all changes in this revision

Viewing changes to lib/megaco/src/text/megaco_text_gen_prev3a.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:
1549
1549
     enc_StreamID(Val, State)
1550
1550
    ].
1551
1551
 
 
1552
%% The value is already encoded
 
1553
enc_eventOther(#megaco_event_parameter{name  = Name,
 
1554
                                       value = Value}, State) 
 
1555
  when is_list(Value) ->
 
1556
    [
 
1557
     enc_Name(Name, State),
 
1558
     ?EqualToken,
 
1559
     Value
 
1560
    ];
 
1561
%% Special treatment of the ds parameter of the dd/ce event
 
1562
enc_eventOther(#'EventParameter'{eventParameterName = "ds" = Name,
 
1563
                                 value              = [DigitString],
 
1564
                                 extraInfo          = asn1_NOVALUE}, State) ->
 
1565
    [
 
1566
     enc_Name(Name, State),
 
1567
     ?EqualToken,
 
1568
     enc_DigitString(DigitString, State)
 
1569
    ];
1552
1570
enc_eventOther(#'EventParameter'{eventParameterName = Name,
1553
1571
                                 value              = Value,
1554
1572
                                 extraInfo          = Extra}, State) ->
2679
2697
quoted_string_count([], Count, IsSafe) ->
2680
2698
    {IsSafe, Count}.
2681
2699
 
 
2700
enc_DigitString(String, _State) when is_list(String) ->
 
2701
    [?DQUOTE, String, ?DQUOTE].
 
2702
 
 
2703
 
2682
2704
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2683
2705
 
2684
2706
%% Encode an octet string, escape } by \ if necessary